Everyday Utilities
PX to REM Converter: Convert Pixels and REM Units Online
Convert CSS pixels to rem units and back with a custom base font size. Perfect for responsive design and accessibility work.
Runs in your browser — your text is never uploaded or stored.
Quick answer
PX to REM Converter is a free online tool that convert CSS pixels to rem units and back with a custom base font size. Perfect for responsive design and accessibility work.
- Cost: free, no signup or limits.
- Privacy: runs 100% in your browser; text is never uploaded.
- Works on: desktop and mobile browsers, offline once loaded.
- Category: Everyday Utilities.
px
rem
Common: 12px = 0.75rem · 16px = 1rem · 24px = 1.5rem · 32px = 2rem
Common conversions
How to Use
- 1.Set the root font size (default 16px).
- 2.Type any pixel value to see the rem equivalent — or type rem to see pixels.
- 3.Copy the converted value straight into your stylesheet.
Advertisement
FAQ
What is the default base font size?
Browsers default to 16px, which is the value used here unless you override it.
When should I use rem over px?
rem scales with the user's browser font-size preference, which is better for accessibility and responsive design.
Does it support decimals?
Yes — enter any decimal value. Results are shown to four decimal places.
Related tools
Color Format Converter
Free online color converter. Convert between HEX, RGB, and HSL color codes with a live preview. Private and browser-based.
Roman Numeral Converter
Free online Roman numeral converter. Convert between Arabic numbers (1–3999) and Roman numerals instantly. Private, browser-based, no signup.
URL Encode / Decode
Free online URL encoder and decoder. Percent-encode any string for safe use in URLs or decode %-encoded text back to plain characters. 100% browser-based.
UUID Generator
Free online UUID v4 generator. Create one or many cryptographically random UUIDs (also known as GUIDs) in your browser — no signup.
Related guides
HEX to RGB Explained: How Colour Codes Actually Work
A hex code is just three numbers written in base 16. Once you can read it, converting between colour formats stops feeling like magic.
Converting PX to REM in CSS: A Practical Guide
Rem units respect the reader's browser settings. Converting from pixels is simple arithmetic once you know your root font size.