CSS Unit Converter – Free Online Tool

Developer & Encoding 4.9 Active

Convert px, rem, em, pt and % instantly with a custom base font size — free, no signup.

14,295
18,288
3,898
Updated Aug 12 Use Tool

Tool Interface

Convert CSS units instantly — px to rem, px to em, rem to px, em to px and more. Set your root font size and see every equivalent value at once.

Convert
Quick values (px)
All equivalents
How it works
  1. Enter a value and pick its unit, or tap a quick value.
  2. Set your base font size (usually 16px — the browser default root size).
  3. Copy any row or grab the whole set as a CSS comment block.
  • rem is relative to the root font size; em is relative to the parent element's font size — with the same base they convert identically.
  • Points use the CSS standard of 96px per inch (1pt = 1.333px).

100% private — everything runs in your browser, nothing is uploaded.

Rate this tool

SPONSORED

About This Tool

Introduction

Mixing absolute and relative units is one of the easiest ways to break a layout. The Trencada CSS Unit Converter translates instantly between px, rem, em, pt, and % using your own base font size, so you can switch a stylesheet to relative units or check exactly how a size renders. It's free, requires no signup, and runs entirely in your browser.

How to Use

  1. Enter a value and pick its unit (px, rem, em, or pt) from the dropdown — or tap one of the quick-value chips for common pixel sizes.
  2. Set your base font size in pixels. The default 16px matches the standard browser root size; change it to match your project's root so rem, em, and % values recalculate.
  3. Read the All Equivalents table — every row shows the unit, its converted value, and a ready-to-paste CSS snippet.
  4. Press Copy as CSS to grab every equivalent as a CSS comment block, or Reset to return to 16px with a 16px base.

Key Features

  • Five units at once: px, rem, em, pt, and % equivalents calculated together in a single table.
  • Custom base font size: convert against your project's root size instead of a hard-coded 16px.
  • Quick-value chips: one-tap presets for common sizes from 12px to 48px.
  • Copy as CSS: exports every equivalent as a CSS comment block for your stylesheet.
  • Copy-ready values: each table row includes the exact CSS snippet, e.g. 1rem.
  • 100% client-side: all math happens in your browser — nothing is uploaded or stored.

Why Choose Trencada

Trencada's developer tools are free forever with no account and no tracking. Pair this converter with the CSS Formatter to clean up your stylesheets, the CSS Clamp Generator for fluid responsive typography, or the general-purpose Unit Converter for length, weight, and other non-CSS measurements.

FAQ

How many pixels is 1rem?
By default, 1rem equals 16px — the standard browser root font size. If your project sets a different root size, enter it as the base font size and every equivalent recalculates.

What is the difference between rem and em?
rem is relative to the root (html) font size, while em is relative to the parent element's font size. The converter computes both against the base size you enter.

How are points converted to pixels?
The tool uses the CSS standard of 96px per inch, so 1pt = 1.333px.

Do I need to sign up or install anything?
No. The converter is free, works entirely in your browser, and requires no account.

Category: Developer & Encoding

Tool Information

Category Developer & Encoding
Updated Aug 12
Status Active
Rating 4.9
Type Free Tool
18,288 people used this tool

You May Also Like

View All

2026 Quick-Preset Specifications & Portal Requirements Cheat Sheet

PORTAL UPLOAD SPECUnder 100 KB / 200 KB PDF150 DPI downsample + XMP metadata strip
LEGAL BATES STAMP6-Digit Prefix (CASE-000001)Bottom-right 32pt safe margin with zero text overlap
TRUE SANITIZATIONDestructive Raster RedactionPurges hidden Tj text streams, OCR layers & XMP data
PAGE NORMALIZATIONUS Letter 8.5x11 (612x792 pt)Centers receipt photos & A4 scans without stretching

Frequently Asked Technical & Privacy Questions

Are my confidential PDFs uploaded to a server when I merge, compress, or redact?

No. Merge, compress, and redact run 100% locally in your browser using WebAssembly, so your files never leave your computer. Most of our tools work this way. The exceptions are Excel to PDF and PowerPoint to PDF, which send your file to our server for conversion and delete it after processing.

Why is drawing a black rectangle over text in a PDF not real redaction?

A black shape drawn in a standard viewer only sits on an annotation layer above the text. Trencada destroys the underlying text tokens and rasterizes the redacted region permanently.

How do I add sequential 6-digit Bates numbering without paying for Adobe Acrobat Pro?

Open Trencada Bates Numbering PDF tool, enter your case prefix and starting number, choose 6-digit zero padding (000001), and stamp your discovery set locally.

Saved time with Trencada? All 450+ tools are 100% free with zero paywalls, zero signups, and zero cloud uploads.Rate Trencada on Trustpilot ★
Trustpilot