Back to Designers
px ↔ rem Converter
Convert pixels to rem and back at any root font size
Runs locally in your browser
Parameters
Results
- rem
- 1 rem
- Pixels
- 16 px
How it works
Converts CSS pixel values to rem (and back) using your root font size.
Who it's for: Frontend developers maintaining fluid, accessible type and spacing.
rem = px ÷ root; px = rem × root.
Default root is 16px (browser default).
How to use
- Enter Value, choose From direction, and set Root font size.
- Copy the rem or px result into your stylesheet.
Related tools
More calculators in the same category
- Color Palette GeneratorGenerate a 5-shade palette from a base color
- Image CompressorCompress JPEG and WebP images locally
- Golden RatioMajor and minor segments
- Contrast CheckerWCAG contrast ratio between two hex colors
- Type Scale GeneratorModular typography scale from a base size and ratio
- HEX ↔ RGB ConverterConvert hex colors to RGB and back