PX to REM Converter
Convert px to rem and rem to px online with a custom base size and reference table.
- Runs on your device
- Free, no account
- Works offline
// Overview //
About PX to REM Converter
This converter turns pixel values into rem units and rem values back into pixels, using any base font size you choose. It is built for front-end developers and designers who need to write responsive CSS with relative units instead of fixed pixel values.
Enter a base font size, type a value in either unit, and the conversion appears instantly along with a reference table of common sizes. Everything runs entirely in your browser, so the tool works offline after loading and no text ever leaves your device.
// Getting started //
How it works
-
Step 1

Set the base size
Enter your root font size in pixels, such as 16, so conversions match your CSS setup.
-
Step 2

Enter a value
Type a value in px or rem and the equivalent in the other unit is calculated immediately.
-
Step 3

Copy the result
Copy the converted value or use the reference table to grab common sizes for your stylesheet.
// Capabilities //
Built for the details
Custom base size
Set any base font size instead of being locked to the default 16px, so results match your project.
Two-way conversion
Convert from px to rem and from rem back to px in the same place.
Reference table
See a quick table of common px and rem equivalents for fast lookup while coding.
Runs in browser
All calculations happen locally on your device, and the tool keeps working offline after it loads.
// Use cases //
Where this tool fits
Responsive CSS
Replace fixed pixel font sizes and spacing with rem values that scale with user settings.
Design handoff
Translate pixel measurements from a design file into rem values for your stylesheet.
Accessibility audits
Check how pixel-based sizes in an existing project convert to relative rem units.
Custom root sizes
Recalculate values when a project uses a root font size other than 16px.
// Good to know //
Frequently asked questions
What base font size is used for the conversion?
The default is 16px, but you can enter any base size. The formula is rem = px ÷ base size, so a custom base changes every result accordingly.
Is the conversion exact?
Yes, the tool uses the standard formula px ÷ base = rem. Results are shown with enough decimal places for practical CSS use.
Where does the conversion happen?
Everything runs entirely in your browser on your own device. No text is sent to a server, and the tool continues to work offline after the page has loaded.
Does it cost anything to use?
No, the tool is free with unlimited conversions and no account required.
Can I convert rem back to px?
Yes, the converter works in both directions. Enter a rem value and you get the pixel equivalent based on your chosen base font size.
A simpler way to get work done
Immediate results. Work directly on your device, with no upload or processing queue.
- Free to use — No credits or account required. Use the tool whenever you need it.
- Ready when you are — Once loaded, the tool keeps working without an internet connection.
- Your files stay on your device
// Keep going //
Related tools
Other tools people use alongside PX to REM Converter.