Pricing
Home/Free tools/Px to rem converter
Updated November 24, 2026

Px to rem converter

Pixels to rem and back for any root size, with a table to copy from

  • Free, no account needed
  • Runs in your browser: nothing you type is sent anywhere
px

The font size of the html element; browsers default to 16 px

px
rem

Type in either field and the other one follows.

In rem

1.5rem

24 px ÷ 16 px root font size

Common sizes for a root of 16 px

Select a rem value to copy it.

  • 10 px
  • 12 px
  • 14 px
  • 16 px
  • 18 px
  • 20 px
  • 24 px
  • 28 px
  • 32 px
  • 36 px
  • 40 px
  • 48 px
  • 56 px
  • 64 px

Pixels, rem and em

A CSS pixel (px) is a fixed unit. A rem is relative to the font size of the root element, the html tag, so 1rem is 16 px when the browser keeps its default size. An em is relative to the font size of the element itself, and for font-size to that of its parent.

Because em follows the parent, it compounds: a list set to 0.875em inside another list set to 0.875em ends up at about 77% of the base size. Rem always refers back to the root, which makes it easier to keep a type scale consistent across a site.

How to convert px to rem

Divide the pixel value by the root font size. To go back, multiply the rem value by the root font size. With the usual 16 px root, 24 px is 1.5rem and 14 px is 0.875rem.

Some projects set the root to 62.5%, which makes 1rem equal 10 px at the default size and turns the arithmetic into moving a decimal point. Enter 10 as the root font size to convert for those projects.

rem = px ÷ root font size
px = rem × root font size

24 ÷ 16 = 1.5rem
1.5 × 16 = 24 px

Root at 62.5% (10 px): 24 ÷ 10 = 2.4rem

Why rem respects the reader

Browsers let people choose a larger default font size in their settings. Text sized in rem or em grows with that choice; text sized in px stays the same, even though page zoom still enlarges both. Sizing type in rem keeps a design readable for people who need bigger text without any extra work.

For design teams the practical part is the handover: design files measure in pixels, the code uses rem. Agree on the root size once, and convert every font size and spacing value from the same number.

  • Use rem for font sizes, and for spacing that should grow with the text
  • Keep px for hairline borders and details that should not scale
  • Set the root as a percentage (100% or 62.5%), not a fixed px value, so the reader’s setting still counts
  • Round to values the type scale already uses instead of keeping long decimals

A tool by Lyniti

Specs and files where the studio finds them

Lyniti connects briefs, visual files, client feedback, approvals, schedules and billing by project, so handover notes and design files stay with the work they belong to.

See Lyniti for design studios →

Related tools

All free tools →
  • Aspect ratio calculator→The ratio of a width and height, or the missing side for a ratio
  • Box shadow generator→Layered CSS box shadows previewed on a card, with the CSS to copy
  • Color contrast checker→Contrast ratio of two colors, checked against WCAG AA and AAA

Embed this tool

Add it to your own site or help centre. It runs in your visitors’ browsers, like here, and links back to this page.

<iframe src="https://lyniti.com/tools/px-to-rem-converter/embed" title="Px to rem converter" width="100%" height="760" style="border:0;max-width:100%" loading="lazy"></iframe>

Frequently asked

questions

How many pixels is 1rem?

1rem equals the root font size. With browser defaults that is 16 px, unless the site sets a different size on the html element or the reader changes the default font size in the browser.

What is the difference between rem and em?

Rem is relative to the root element’s font size, em to the font size of the current element (for font-size itself, the parent’s). Nested em values multiply, rem values do not.

Should I use rem or px for font sizes?

Rem is the safer choice for text, because it follows the font size the reader picked in the browser. Px ignores that setting, although zooming the page still works.

What does font-size: 62.5% on html do?

It sets the root to 62.5% of the browser default, which is 10 px when the default is 16 px, so 1.6rem is 16 px. Because it is a percentage, it still scales with the reader’s setting. Remember to set the body text size back up in rem.

Projects, clients and finance in one workspace

Lyniti helps agencies, consultancies, studios, and service teams manage projects, clients, approvals, invoices, bookkeeping, and finance in one workspace.

See it in actionSee it in actionSee Pricing

The all-in-one business collaboration platform that replaces multiple tools, streamlines workflows, and reduces costs for modern teams.

Product

  • Features
  • Pricing
  • Documentation

Features

  • Chat
  • Bookkeeping
  • Double-entry
  • Finances
  • Financial Approvals
  • Invoices
  • Whiteboard
  • Files
  • Meet
  • Tasks
  • Calendar
  • CRM

Solutions

  • Agencies
  • Operations
  • Finance & Admin
  • Projects
  • Freelancers
  • Governance
  • Teams + Finance
  • Projects + Bookkeeping
  • Design studios
  • Consultants
  • Remote teams
  • Projects + Invoicing
  • Client Portal
  • Projects + Approvals

Compare

  • vs 17hats
  • vs Airtable
  • vs Asana
  • vs Basecamp
  • vs ClickUp
  • vs Discord
  • vs Dropbox
  • vs Google Workspace
  • vs Jira
  • vs Linear
  • vs Microsoft Teams
  • vs Miro
  • vs monday.com
  • vs Notion
  • vs Plutio
  • vs QuickBooks
  • vs Rock
  • vs Salesforce
  • vs Slack
  • vs Smartsheet
  • vs Trello
  • vs Wimi
  • vs Wrike

Free tools

  • Invoice generator
  • Quote generator
  • VAT calculator
  • Profit margin calculator
  • Hourly rate calculator
  • Gantt chart maker
  • Online whiteboard
  • Time zone meeting planner
  • UTM builder
  • Email signature generator
  • Image resizer
  • Color contrast checker
  • QR code generator

Company

  • About
  • Blog
  • support@lyniti.com
  • Service status

Legal

  • Trust Center
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Data Processing Agreement
  • Imprint

© 2026 Lyniti. All rights reserved.

Made with love and Lyniti