<!-- Markdown version of https://ocxly.com/css-unit-converter.html · auto-generated, may lag the live page -->

# CSS Unit Converter

Convert a value between `px`, `rem`, `em`, `pt`, `pc`, `in`, `cm` and `mm` at once — with configurable root and parent font sizes for the relative units. Computed live in your browser.

### How it works

Your value is converted to absolute pixels and then out to every unit, using the CSS-standard ratios: `1in = 96px`, `1pc = 16px`, `1pt = 1/72in`, `1cm = 96/2.54px`. Relative units depend on font size — `rem` uses the root font size and `em` uses the parent font size you set. Everything is computed locally.

---
*Source: [ocxly.com/css-unit-converter.html](https://ocxly.com/css-unit-converter.html) — OCXLY, free 100% client-side privacy-first tools. Free CSS unit converter across px, rem, em, pt, pc, in, cm and mm, entirely in your browser.*
