Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsPX to REM ConverterREM to PX Converter

REM to PX Converter

dev

Turn rem or em values back into pixels for any root font size

Runs in your browser. Nothing you type is sent anywhere. Checked against sources on 22 Oct 2026.

A design file says 24px and the code says 1.5rem; which is right? Type a rem or em value and get the pixels for your root font size, 16px by default or 10px for sites that set html to 62.5%. The table lists the common sizes both ways, and a value typed with px converts the other way, so one box answers both questions.

Next:
  • CSS Specificity Calculator See the (A, B, C) specificity of any selector, part by part, and which rule wins
  • CSS Beautifier & Minifier Tidy a stylesheet or minify it, with the size saved shown

How to use REM to PX Converter

1

Paste or type your input.

2

Choose the options you need.

3

Press Ctrl+Enter, then copy or download.

How REM to PX Converter works

Sizes in rem follow the reader's own font-size setting, so text and spacing grow together for anyone who has set a larger default. Designs are still handed over in pixels, and this converter does the arithmetic both ways.

One value. Type 24px and read 1.5rem; type 1.5rem and read 24px. A bare number counts as px. Change the root font size if your site sets one: many sites set html to 62.5%, which makes 1rem equal 10px. The table lists the common sizes for the root size you choose, in rem or in em.

em works the same way as rem but relative to the parent element's font size, so set the size to the parent's when you pick em. Values are rounded to the decimals you choose, four by default, and 0px becomes 0. Nothing you paste leaves your browser. Related tools: CSS Clamp Generator, CSS Formatter, Box Shadow Generator.

The rest of the article, and all 6 questions about PX to REM Converter, are on the PX to REM Converter page.

Frequently asked questions

How do I convert px to rem?

Divide the pixel value by the root font size. Browsers default to 16px, so 24px is 1.5rem, 14px is 0.875rem and 32px is 2rem. Type the value above, or paste a whole stylesheet to convert every px in it at once with the same root size.

How many pixels is 1rem?

One rem equals the font size of the html element. When the page does not set one, that is the browser default of 16px, unless the reader has changed it in their settings. A site that sets html to 62.5% makes 1rem equal 10px for readers with the default.

What is the difference between rem and em?

A rem is relative to the root html font size, so it means the same everywhere on the page. An em is relative to the font size of the element itself, or its parent for the font-size property, so nested ems multiply. Use rem for predictable spacing.

Should media queries use px, rem or em?

In a media query, rem and em always refer to the browser's initial font size, usually 16px, not to the size your page sets on html. So 768px becomes 48em even on a 62.5% site. Em breakpoints follow the reader's zoom and default size, which px breakpoints do not.

Sources

  • W3C CSS Values and Units Module Level 4, 6.1.1 Font-relative lengthsrem is the font-size of the root element, em the font-size of the element
  • W3C Media Queries Level 4, 1.3 Units (Editor's Draft)Relative length units in media queries are based on the initial value of font-size, not on any styling on the page

Last verified 22 October 2026.

Rates and rules change; check the source before you rely on a figure.

Still stuck? Ask about PX to REM Converter and anybody who knows can answer. No account needed.

More ways to use PX to REM Converter

  • PX to REM ConverterConvert px to rem or em and back, or turn every px in a stylesheet into rem

On the related tools: TSV to JSON – Convert tab-separated values, such as a paste from Excel, into JSON · Query String Parser – Split a URL query string into a table of decoded parameters.

Related tools

All developer tools
Base64 Encode & DecodeText and files to Base64 and back, with URL-safe mode and image previewUnix Timestamp ConverterUnix timestamps to dates and dates to timestamps, in any time zoneJSON to TypeScriptGenerate TypeScript interfaces or types from a JSON sampleCSV to JSONConvert CSV to JSON and JSON to CSV, with a table previewYAML to JSONConvert YAML to JSON and JSON to YAML, with anchors resolvedURL Encoder / DecoderPercent-encode or decode text and URLs, and see every part of a linkColor ConverterHEX, RGB, HSL, HWB, OKLCH and CMYK in both directions, with a contrast checkNumber Base ConverterBinary, octal, decimal, hex and any base to 36, exact at any size, with two's complement
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)