PX to REM Converter
Enter a pixel value and get the equivalent REM value instantly. Set any base font size — default is 16px — and convert single values or a bulk list at once.
Last updated: May 21, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is PX to REM Converter?
REM (Root EM) is a CSS unit relative to the root element's font size — typically the `<html>` element. Most browsers default the root font size to 16px, making 1rem = 16px. Using REM instead of px allows your layout to scale with user font size preferences and makes responsive design easier.
The formula is simple: **rem = px ÷ base font size**. So 24px at a 16px base = 1.5rem. If your project sets a different root font size (e.g. `html { font-size: 10px }` to make 1rem = 10px), you can change the base here to match.
How to Use PX to REM Converter
Enter one or more px values in the input box (comma or newline separated)
Set the base font size if different from 16px
Copy individual results or the full table
Use the reference table below for common conversions at a glance
Common Use Cases
- Front-end developers converting design specs (in px) to REM for accessible layouts.
- Teams migrating a px-based stylesheet to REM for better scalability.
- Developers using a 10px base trick (html { font-size: 62.5% }) for easier REM math.
- Designers converting Figma measurements from px to REM before handing off to developers.
- Developers checking rem equivalents for type scale or spacing values.
- Students learning CSS units and how rem relates to pixel values.
Example Input and Output
Convert several common design sizes from px to REM at the default 16px base.
16
24
32
4816px → 1rem
24px → 1.5rem
32px → 2rem
48px → 3remPrivacy
All conversions are calculated in your browser. No data is sent to any server.
Tip: viewport and container units
REM works well alongside viewport units (vw, vh) for fluid typography. Use REM for base sizes and clamp() with vw for fluid scaling. This converter helps you establish your REM baseline.
Frequently Asked Questions
What is the default base font size?
The default base is 16px, which is what all major browsers use as the root font size unless overridden. If your CSS sets a different root font size (e.g. html { font-size: 10px }), enter that value in the base field.
What is the difference between REM and EM?
REM is always relative to the root (html) element's font size. EM is relative to the current element's font size, which can compound when nested. REM is generally more predictable for layouts and spacing.
How do I use the 10px base trick?
Setting html { font-size: 62.5% } makes 1rem = 10px (62.5% of 16px = 10px), so 24px = 2.4rem — much easier to read. Set the base to 10 here to see those values.
Can I convert multiple values at once?
Yes. Enter values separated by commas or newlines and the converter will produce a row for each one.
Related Tools
CSS Beautifier / Formatter
Format, indent, and beautify minified or messy CSS code — with configurable indentation and sorting options.
CSS Minifier
Compress and minify CSS code to reduce file size and speed up page loads.
CSS Validator
Validate CSS syntax online. Checks for unclosed braces, missing colons, empty rules, and invalid property/value pairs using CSS.supports().
JSON to CSV Converter
Convert a JSON array of objects to CSV. Flattens nested objects with dot-notation columns and handles arrays within values.
HTML to CSV Converter
Extract table data from HTML and convert it to CSV. Supports multiple tables, minimal or always-quote modes, and download as .csv.
REM to PX Converter
Convert REM values to pixels instantly. Set your base font size, enter one or multiple REM values, and get the pixel equivalent with a full reference table.

