PX to REM Converter
Convert pixels to rem and em (and back) for any root font size, with a quick reference table.
Browsers default to 16px. Change this if your html element sets a different font size.
in rem1rem
in em1em
in pixels16px
Quick Reference (base 16px)
| Pixels | Rem | Em |
|---|---|---|
| 8px | 0.5rem | 0.5em |
| 10px | 0.625rem | 0.625em |
| 12px | 0.75rem | 0.75em |
| 14px | 0.875rem | 0.875em |
| 16px | 1rem | 1em |
| 18px | 1.125rem | 1.125em |
| 20px | 1.25rem | 1.25em |
| 24px | 1.5rem | 1.5em |
| 32px | 2rem | 2em |
| 40px | 2.5rem | 2.5em |
| 48px | 3rem | 3em |
| 64px | 4rem | 4em |
What Is the PX to REM Converter?
The PX to REM Converter turns pixel values into rem and em units and back again, based on your root font size (16px by default). It includes a handy reference table of common sizes for responsive, accessible CSS.
How It Works
Set your base font size, then type a pixel or rem value — the converted units update instantly and can be copied with one click.
When to Use It
Use it while writing responsive CSS, where rem units scale with user font-size preferences for better accessibility.
Frequently Asked Questions
- What's the difference between rem and em?
- rem is always relative to the root (html) font size; em is relative to the current element's font size. This tool assumes the root for both, which is the common case.
Last reviewed: 2026-06-27
Popular Tools
Title Case Converter
Convert text to title case with smart rules for articles, conjunctions and prepositions.
QR Code Generator
Create custom QR codes from any URL or text and download them as PNG or SVG — generated entirely in your browser.
JSON Formatter & Minifier
Beautify, validate and minify JSON with clear parse errors.
Unicode Text Converter
Preview your text in 35+ Unicode styles at once with copy buttons and favorites.
Word Counter
Count words, characters, sentences and paragraphs in real time, with reading time and keyword density.
Strong Password Generator
Generate secure random passwords using cryptographic randomness.