CSS Unit Converter
Turn design-spec pixels into rem, em, and viewport units in this tab — and see print-unit equivalents side by side.
Processed in your browser
Any finite number; decimals allowed.
The CSS unit that value is currently in.
Used for rem; commonly 16.
Used for em.
Used for percent.
Used for vw.
Used for vh.
Enter a value and unit, then convert.
Features
Common relative units
Convert px, rem, em, %, vw, and vh together.
Configurable context
Tune root font, parent font, parent width, and viewport.
Print unit reference
Show pt, cm, mm, and in at the CSS 96ppi reference.
Stays in the browser
Math runs on this device. Values are not uploaded.
How to use
- Enter a number and choose its source unit (for example 16 and px).
- Set root font size, parent font size, parent width, and viewport as needed.
- Press Convert, then copy the rem, em, vw, or other result you need.
Why this tool
Runs in the browser
Core work finishes in this tab.
No upload
Pasted text and local files are not sent away for processing.
Free, no account
The core path has no signup wall.
Immediate
There is no upload-and-wait queue.
10 languages
The same tool ships in ten languages.
Readable failures
Broken input returns a reason, not a blank screen.
FAQ
- Are values uploaded?
- No. Conversion runs in this browser. Values are not sent.
- What is the difference between rem and em?
- rem is relative to the root font size; em is relative to the parent font size. Set both in the context fields.
- How are vw and vh calculated?
- 1vw is 1% of the viewport width; 1vh is 1% of the viewport height. Enter the target viewport size.
- Is it free? Do I need an account?
- Yes, it is free. No account is required to convert or copy.
Related tools
- Developer
JSON Formatter
Format, minify, and validate JSON.
Open tool - Developer
Timestamp Converter
Convert Unix timestamps and dates.
Open tool - Developer
UUID Generator
Generate RFC 4122 UUID v4 values.
Open tool - Developer
Base64 Converter
Encode and decode Base64 in your browser.
Open tool - Developer
Hash Generator
Generate SHA digests in your browser.
Open tool - Developer
Password Generator
Generate strong random passwords in your browser.
Open tool - Developer
URL Encoder
Percent-encode or decode URLs and query values in your browser. Pasted text stays on this device — nothing is uploaded.
Open tool - Developer
Color Converter
Convert HEX, RGB, and HSL colors in your browser.
Open tool - Developer
JWT Decoder
Decode JWT header and payload in your browser.
Open tool - Developer
Case Converter
Convert camelCase, snake_case, kebab-case, and more in your browser.
Open tool - Developer
Chmod Calculator
Convert Unix file permissions with checkboxes, octal, and symbolic notation.
Open tool - Developer
Number Base Converter
Convert binary, octal, decimal, hex, and custom bases 2–36 with BigInt precision.
Open tool - Developer
HTML Entity Encoder
Encode or decode HTML entities (named, decimal, hex) in your browser. Pasted text stays on this device — nothing is uploaded.
Open tool