DevFiddleDevFiddle
HomeToolsSnippetsArticles
Explore tools
Home>Tools>Px to percent converter

Px to percent converter

Convert pixel values to relative percentages and back. Set your base container or font size and keep both values synchronized in real time.

px
%
16px equals 100% of a 16px base.

The container width or parent font size that equals 100%.

Common bases
For typography, standard browser base is 16px. For responsive layout containers, typical desktop widths range from 1024px to 1200px.
Tip: press Enter in either field to copy the percentage value.

Common sizes

Based on a base size of 16px.

UsePixelsPercentageActions
Caption12px75%
Small text14px87.5%
Body text16px100%
Large body18px112.5%
Subheading24px150%
Heading32px200%
Large heading48px300%
Display64px400%

How it works

1

Set the base size

Choose a base container width (e.g., 1200px) or root font size (16px) that represents 100%.

2

Type pixels or percent

Enter a pixel value or percentage. The opposite field updates dynamically.

3

Copy the result

Copy the percentage value ready to paste into responsive CSS layouts or typography.

Questions

More tools

Px to rem converter

Turn pixel values into rem units and back.

Open tool
Px to em converter

Turn pixel values into relative em units.

Open tool
Color contrast checker

Check text and background colors against WCAG.

Open tool
About© DevFiddle 2026