AiTechWorlds
AiTechWorlds
Convert between px, rem, em, %, pt, vw and vh instantly. Configure base font size and viewport.
16px
px β pixels
1rem
rem β root em
1em
em β local em
100%
% β percent (of parent)
12.0003pt
pt β points
1.11111vw
vw β viewport width
1.77778vh
vh β viewport height
Tailwind spacing (exact)
p-4 Β· m-4 Β· gap-4 β 16px
Fluid clamp() generator
font-size: clamp(1rem, 0.8239rem + 0.7512vw, 1.5rem);Scales smoothly between viewports β paste straight into any CSS property (font-size, padding, marginβ¦).
The CSS Units Converter on AiTechWorlds converts between all CSS length units β px, rem, em, vh, vw, vmin, vmax, pt, and cm β instantly, with support for custom root font size and viewport dimensions. CSS has many length units, each suited for different purposes: px for fixed sizes, rem for scalable typography relative to the root font size, em relative to the parent font size, and viewport units for responsive layouts. Converting between them manually requires knowing the base font size and viewport size. This tool handles all conversions simultaneously: enter a value in any unit and see all equivalents update at once. Set your project's root font size (default 16px) and viewport dimensions to get accurate results for your specific context. All conversion runs in your browser with no server call. AiTechWorlds built this for frontend developers who constantly juggle CSS units in responsive design work.
Set context values
Enter your root font size (default 16px) and viewport width/height for accurate conversions.
Enter a value
Type a value in any unit field β px, rem, em, vh, vw, or others.
See all equivalents
All other unit fields update instantly to show the equivalent value.
Copy any unit
Click to copy the value in the specific unit you need.
100% Private β No Server Required
All processing happens directly in your browser. No data is uploaded, stored, or transmitted to any server.
Last reviewed on June 1, 2026 by the AiTechWorlds Tools Team. All processing runs locally in your browser.
Advertisement