UI Unit Converter

PX, REM, EM, DP, SP, PT, VW/VH Unit Converter. Pixel conversion and responsive design resolution (DPI) calculator for Web, Android, and iOS development.

About UI Unit Converter

Compare CSS, Android and iOS size units using explicit reference values.

Enter a finite number, select its unit and adjust the root font, parent font, viewport or density reference as needed.

Copy the conversion snapshot to document layout assumptions across platforms.

The calculation or rendering runs in this browser tab. Copy, download and share actions make the chosen output available outside this tab.

Worked example

Input / settings
16px; root font 16px
Action
Convert to rem
Result
1rem

Scope and limits

  • rem/em and viewport units depend on the supplied reference, while dp/sp/pt depend on the platform assumptions. Zero or invalid reference values cannot define a ratio.

Frequently asked questions

Are these physical screen measurements?
No. They are conversions from configured references; actual device scaling, zoom and accessibility settings can differ.

For account, sync, advertising and analytics data flows, see the Privacy Policy.