Skip to content
Toolbox

PX to REM, EM and PT converter

Convert pixels to rem, points to pixels or centimetres to pixels. Change the root font size when your design does not use 16 pixels.

Runs in your browser. Nothing is uploaded.

Loading the CSS unit converter…

How to use the CSS unit converter

  1. Enter a value and pick its unit.

  2. Set the root and parent font size if they differ from 16 pixels.

  3. Copy the value in the unit you need.

Frequently asked questions

How many pixels is 1 rem?

1 rem equals the font size of the root element, which is 16 pixels in most browsers unless the page or the user changes it.

How many points is a pixel?

CSS defines 96 pixels per inch and 72 points per inch, so 1 pixel is 0.75 point.

  • Color converter

    Convert colors between HEX, RGB and HSL, with a color picker and a live preview. Supports shorthand HEX and transparency.

  • Contrast checker New

    Check the contrast ratio of text and background colors against WCAG 2.2 AA and AAA for normal text, large text and user interface parts.

  • Number base converter New

    Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, without losing precision on large numbers.

  • JSON formatter New

    Format, validate and minify JSON, and explore it in a collapsible tree with a filter for keys and values. Errors are shown by line and column.

All tools in Developer