TR

Home / Convert / PX REM EM Converter

📏 PX REM EM Converter

PX REM EM Converter – get instant, free results right on your device.

WhatsAppTelegramX

The em unit is calculated relative to the parent element's font size; here the parent size is assumed to equal the base size. Not an official institution.

Last updated: November 2026 · Parameter year: 2026 · Methods and sources: Methodology · Editorial policy

What is PX REM EM Converter?

The pixel (px) is a fixed unit; rem and em are relative units that scale with font size. When a user increases the font size in their browser, interfaces written with rem grow proportionally, while those written with px do not. For this reason, using rem for sizes is recommended in modern CSS.

The conversion is simple: rem = px ÷ base font size. Browsers' default base size is 16 px, so 24 px = 1.5 rem. The tool lets you change the base value and also shows the pt equivalent (1 px = 0.75 pt).

The em unit is calculated relative to the font size of the element's parent. This tool assumes the parent's size equals the base size; for nested elements, the actual em value may differ.

How to use

Fill in these fields: Value, Direction, Base font size. Then press the button; the result appears on the same page and your data never leaves your device.

Formula

24 px ÷ 16 = 1.5 rem

Example

24 px ÷ 16 = 1.5 rem

Worked examples and tips

Example 1: With the value 24, the direction px → rem / em / pt, and base 16, the tool gives 1.5 rem, 1.5 em, and 18 pt. The browser’s default font size is usually 16 pixels; that is why you get 1.5 rem by dividing 24 pixels by 16.

Example 2: If the value is 18, the result is 1.125 rem, 1.125 em, and 13.5 pt. Fractional results like this come up often when carrying pixel values from a designer into CSS. If you choose base 10 and enter 20 px, you see 2 rem, 2 em, and 15 pt; use this setting if you work with an older method that sets the root size to 10 pixels.

Example 3: In the reverse direction, if you choose rem / em → px and enter the value 1.25 with base 16, the tool shows 20 px and 15 pt. This is how you find out how many pixels a rem value you read in a stylesheet equals on screen.

Tips and common mistakes: rem always works relative to the root element’s font size, while em works relative to the element’s parent and grows multiplicatively when nested; so use an em result directly only in a single-level case. If the user has enlarged the font size in the browser, rem grows too, which is the desired behavior for accessibility. Fixing the root size in pixels loses this benefit.

Frequently asked questions

PX REM EM Converter – how to use it?

Fill in the fields and press the button; the result appears instantly. Example: 24 px ÷ 16 = 1.5 rem

PX REM EM Converter – is it free, and is my data stored?

Yes, it is free and requires no sign-up. Because processing happens in your browser, the information you enter is not sent to a server.

Related guide

Related tools

📏Kilometers ↔ Miles ConverterConvert kilometers to miles and miles to kilometers.🌡️Celsius ↔ Fahrenheit ConverterConvert temperature between Celsius and Fahrenheit.🐎kW ↔ HP ConverterConvert engine power between kW and horsepower (PS).🎨HEX ↔ RGB ConverterConvert a color code between HEX and RGB.⚖️Weight ConverterWeight Converter – get instant, free results right on your device.📏Length ConverterLength Converter – get instant, free results right on your device.