PX to REM Converter
Convert pixels to rem using your root font size — one value or a whole stylesheet.
- Runs in your browser — nothing uploaded
- Instant, no waiting in a queue
- Free, no watermark, no daily limits
Enter a pixel value to get its rem equivalent, or type rem to get pixels; both boxes stay in sync. The default root font size is 16px — the browser default — and you can change it to match your project. A reference table lists common sizes, and the bulk converter rewrites every px value in pasted CSS to rem, optionally keeping 1px hairline borders in pixels.
How to Convert PX to REM
- 1
Set the root size
Leave the root font size at 16px or enter the value your site uses.
- 2
Enter a value
Type pixels to get rem, or rem to get pixels.
- 3
Convert CSS (optional)
Paste a stylesheet into the bulk box to convert every px value, then copy the result.
Why use ToolzBank PX to REM Converter?
- Two-way px ⇄ rem conversion
- Custom root font size
- Quick reference table for common sizes
- Bulk-convert px in a whole stylesheet
- Option to keep 1px borders in pixels
- Copy-ready rem values
Frequently asked questions
How do you convert px to rem?
What is 1rem in pixels?
What is the difference between rem and em?
Why use rem instead of px?
Is it free?
More free developer tools
JSON Formatter & Validator
Beautify, minify & validate JSON
JSON to CSV
Flatten JSON arrays into CSV/Excel
XML Formatter
Pretty-print & validate XML
JWT Decoder
Decode & verify JSON Web Tokens locally
Regex Tester
Test regular expressions live
Timestamp Converter
Unix epoch ⇄ human-readable dates
Diff Checker
Compare two texts line by line
Base64 Encoder / Decoder
Encode & decode Base64 text and files
URL Encoder / Decoder
Percent-encode, decode & parse URLs
HTML, CSS & JS Formatter
Beautify HTML, CSS & JS; minify HTML & CSS
Hash Generator
MD5, SHA-1, SHA-256 & SHA-512 for text or files
Number Base Converter
Binary, octal, decimal & hex conversion
Color Converter
HEX, RGB, HSL, HSV & CMYK with contrast check
YAML to JSON Converter
Convert YAML ⇄ JSON with error lines
SQL Formatter
Beautify SQL for MySQL, PostgreSQL & more
Markdown Editor
Write visually, download a .md file
From Our Blog
PX vs REM in CSS: How to Convert Pixels to REM
What rem means, why rem-based sizes are better for accessibility, the simple px-to-rem formula, and how to convert a whole stylesheet at once.
How to Convert Currency Online Using Live Exchange Rates
Bank and card exchange rates rarely match what you see online. Here is how to check the real mid-market rate before you travel, shop abroad, or send money.
How to Convert Bitcoin and Other Crypto Prices to USD
Crypto prices move by the minute. Here is a quick, reliable way to check what your Bitcoin, Ethereum or other holdings are worth in US Dollars right now.
