Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

PX to REM Converter

This tool converts pixel values to rem or em and back, using a root font size you set. Paste a list, and get the converted values and, if you like, a block of CSS custom properties.

How to use PX to REM Converter online

  1. Paste the values. One per line.
  2. Set the root size. Usually sixteen.
  3. Choose the unit. rem, em or px.
  4. Copy the result. Or the CSS block.

Why use this free PX to REM Converter

  • px, rem and em
  • Your own root size
  • List of many values
  • Decimals you choose
  • CSS custom properties
  • Table of pairs

Why rem

A rem is the root font size of the page, and the browser default is usually sixteen pixels. Sizes set in rem grow when a reader raises the text size in the browser, while sizes in pixels do not. Many teams therefore write type and spacing in rem, and need to convert design values given in pixels.

How to use the list

Type or paste values, one per line or separated by commas. A value can be written with px, rem or em, or as a bare number that counts as pixels. The tool converts each one to the unit you pick, with the number of decimals you choose, and a table pairs every input with its result.

Root size

If your CSS sets the root font size to something other than sixteen pixels, such as ten pixels to make the sums easy, type that number. Then twenty-four pixels is two and four tenths rem. The em unit is converted the same way here, but in a real page an em depends on the size of its parent element, so treat em results with care.

CSS output

Switch on the custom property option and the values come out as a root block with numbered names that start with size. Rename them to suit your project.

Limits

A line that is not a number with an optional unit is left out and named in the result. The tool does not read your stylesheet. It only converts the numbers you give it.

Using the tool

Change the text or any option of the PX to REM Converter and the answer moves straight away. Find and replace is built into the editor with Ctrl+F and Ctrl+H.

PX to REM Converter: frequently asked questions

How do I convert by hand?
Divide the pixels by the root font size to get rem, and multiply to go back.
Is em the same as rem?
Only when the parent font size equals the root size. Otherwise em depends on the parent.
Can I convert rem to px?
Yes. Choose px as the target.
Why four decimals?
It is the default, and you can set it from none to eight.
Where does my text go when I use the PX to REM Converter?
No copy is made on a server; the PX to REM Converter runs in your browser.
Can I copy the PX to REM Converter result?
Yes. Use the copy button on the PX to REM Converter result, or select it and copy it by hand.

Related searches for PX to REM Converter

  • PX to REM Converter online
  • free PX to REM Converter
  • PX to REM Converter online free
  • PX to REM Converter for mobile
  • PX to REM Converter without sign up
  • convert px to rem converter
  • px to rem converter converter
  • PX to REM Converter – Developer & Web Tools

PX to REM Converter is a free online tool on MAITBOX, in the Developer & Web Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Developer & Web Tools →

Search tools