Skip to main content

Unit Converter (Pixels to REM)

Convert between px and rem with a configurable base font size.

About this tool

Converting between pixels and rem keeps your layout consistent and accessible. Our unit converter lets you enter a value in pixels and get the equivalent in rem, or the other way around, using a base font size you can set (default 16px). Handy when you’re moving from a design in px to a stylesheet that uses rem, or when tuning responsive typography. Enter a number, adjust the base if needed, and copy the result. All calculation is done in your browser. No sign-up, no limits. A quick, reliable way to switch between px and rem.

How to use

Enter a pixel value to get rem, or a rem value to get pixels. Set the base font size (default 16px) to match your CSS.

Related blog posts

Pro tips

  • Use keyboard shortcuts where available to speed up your workflow.
  • Large inputs are processed in your browser—nothing is sent to our servers.
  • Bookmark this tool for quick access from your browser bar.

FAQs