DevToolsmith

CSS Unit Converter

Convert px, rem, em, points, inches and percentages using explicit reference sizes.

Runs 100% in your browser — nothing is uploaded

Result
0 chars · 0 bytes · 0 lines

Up to 200,000 input characters and 2 million output characters. Processing stays on this device.

Use CSS Unit Converter

Convert px, rem, em, points, inches and percentages using explicit reference sizes. Start with the sample, select the options and run the tool. Copy or download the result after reviewing it.

Behavior and limits

Absolute units follow CSS’s 96 px per inch definition. rem uses the root font size; em uses the supplied element font size; percentages use the explicit reference size. Percentage meaning varies by CSS property, so choose the appropriate reference.

Example input

16

Expected behavior for the example

1rem

Check important output in the application that will consume it. Use the tool directory to find related formats and tasks.

Frequently asked questions

How does CSS Unit Converter handle my input?

Absolute units follow CSS’s 96 px per inch definition. rem uses the root font size; em uses the supplied element font size; percentages use the explicit reference size. Percentage meaning varies by CSS property, so choose the appropriate reference.

Is my input uploaded or saved automatically?

Processing runs locally in this browser. Input and results are not saved automatically. Downloads happen only when you choose them. The static preview blocks scripts and external resources when one is available.