GeekDas

PX to REM Converter

Free online PX to REM converter. Instantly convert pixels to REM units with a customizable root font size. Enter a value in either field to convert both ways.

What is REM?

REM (Root EM) is a CSS unit relative to the root element's font size. Unlike pixels, REM scales with the user's browser settings, making it essential for accessible, responsive design. Frontend developers use REM to build layouts that respect user font size preferences and simplify global scaling.

Formula

REM = PX ÷ root font size

With the default 16px root font size: 32px ÷ 16 = 2rem. Change the root font size below if your project uses a different base.

Calculator

1rem = 16px at root font size 16

Common Conversions (base 16px)

PXREM
8px0.5rem
12px0.75rem
14px0.875rem
16px1rem
24px1.5rem
32px2rem

Frequently Asked Questions

Divide the pixel value by the root font size. With the default 16px root: 32px ÷ 16 = 2rem. Use the calculator above to convert any value instantly.

Other Tools

REM to PX ConverterConvert REM to pixels and vice versaPX to EM ConverterConvert pixels to EM units and vice versaEM to PX ConverterConvert EM to pixels and vice versaPX to VW ConverterConvert pixels to viewport width unitsVW to PX ConverterConvert viewport width units to pixelsHash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 hashesPassword GeneratorCreate strong, secure random passwordsUUID GeneratorGenerate RFC 4122 UUID v4 identifiersJSON FormatterFormat, validate, and minify JSON dataText Case ConverterConvert text to uppercase, lowercase, title caseURL Shortener & LinktreeShorten URLs and create your link-in-bio pageImage ResizerResize JPG, PNG, WebP images in your browser, 100% privateHTML EditorWrite HTML, CSS, JS with live preview in a split-pane editorEpoch ConverterConvert Unix timestamps to dates and back, with live epoch clockMarkdown RendererWrite Markdown and see a live rendered preview with GFM supportColor ConverterConvert between HEX, RGB, and HSL color formats instantlyBase64 Encoder / DecoderEncode text or files to Base64 and decode Base64 strings back to plain textDate Invite MakerCreate a fun "would you go on a date with me?" shareable linkUpwork Proposal FormatterBold and italic key phrases in your Upwork proposal to stand outUTM Link BuilderAdd UTM tracking parameters to any link with presets and clean-upWould You Rather MakerCreate a two-option poll and watch votes roll in live as a shareable linkSpin the WheelRandom decision wheel with presets and a shareable linkCountdown TimerCount down to any event and share the live countdown as a linkAge CalculatorExact age in years, months and days plus next birthday countdownDays Between Dates CalculatorFind the days, weeks and months between two datesWorking Days CalculatorCount business days between two dates and skip holidaysWord & Character CounterCount words and characters, reading time and character limitsEMI CalculatorMonthly loan EMI, total interest and amortization scheduleText Diff CheckerCompare two texts and see added, removed and changed linesFinger PickerPlace fingers on your phone and pick a random winner (mobile only)