Developer

PX to REM Converter

Convert px to rem & em for CSS.

Presets
Live preview
The quick brown fox
Batch convert

Paste any CSS or list of values — every px is converted at once.

Input
Output
Quick reference

This free PX to REM converter turns pixel values into rem,em, % and pt for responsive CSS, and back again — edit any field and the rest update live. Set your root font size (16px by default) or tap a preset, including the popular62.5% trick that makes 1rem = 10px for easier math. Using rem keeps your layout scalable and respects the reader's browser font-size preference.

Control rounding precision from auto down to a fixed number of decimals, copy a ready-to-paste CSS snippet for any property, and see a live text preview at the converted size. The batch converter rewrites an entire stylesheet at once: paste any CSS or a list of values and everypx is converted to your chosen unit, with the result syntax-highlighted and ready to copy or download. A reference table of common sizes is included.

Related tools