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.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use PX to REM Converter online
- Paste the values. One per line.
- Set the root size. Usually sixteen.
- Choose the unit. rem, em or px.
- 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?
Is em the same as rem?
Can I convert rem to px?
Why four decimals?
Where does my text go when I use the PX to REM Converter?
Can I copy the PX to REM Converter result?
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.