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

Text FormatterConvert text to uppercase, lowercase, title caseHTML EditorWrite HTML, CSS, JS with live preview in a split-pane editorMarkdown RendererWrite Markdown and see a live rendered preview with GFM supportImage ResizerResize JPG, PNG, WebP images in your browser, 100% privateEpoch ConverterConvert Unix timestamps to dates and back, with live epoch clockJSON FormatterFormat, validate, and minify JSON dataPassword GeneratorCreate strong, secure random passwordsREM 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 pixelsUUID GeneratorGenerate RFC 4122 UUID v4 identifiersHash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 hashesRandom Number GeneratorGenerate random numbers in any range, with unique resultsColor ConverterConvert between HEX, RGB, and HSL color formats instantlyBase64 Encoder / DecoderEncode text or files to Base64 and decode Base64 strings back to plain textURL Shortener & LinktreeShorten URLs and create your link-in-bio pageDate 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)JWT DecoderDecode JWT header, payload and claims with an expiry checkCron Expression ExplainerTurn cron expressions into plain English and preview next runsWhat My Browser RevealsSee your IP, device and fingerprint info any website can readImage Metadata RemoverStrip EXIF and GPS data from photos in your browserInvoice GeneratorCreate an invoice and download it as a PDFCode to ImageTurn code into a beautiful shareable image, export PNG or SVGHTTP Status Codes ReferenceSearchable list of every HTTP status code with meaningsCron Expression GeneratorBuild cron schedules visually and preview next runsSQL FormatterFormat, beautify and minify SQL queriesRebel Princess Score TrackerScore tracker for the Rebel Princess card gameDice RollerRoll dice online or shake your phone to rollColor Palette ExtractorExtract dominant colors from an imageBMI and Calorie CalculatorCalculate BMI, healthy weight and daily calorie needsPomodoro TimerFocus timer with short and long breaksWorld ClockLive time in cities worldwide and a time zone meeting planner

Need a custom tool or website built?

I build custom web applications and business websites. See all services.

Can't find the tool you need?

Tell me what to build next. Every suggestion gets read.

Suggest a tool