Skip to content
All designer tools

Unit Converter

px · rem · em · % · vw · vh

Absolute device pixels. Always the same physical size on a given screen.

All conversions
Quick reference
1rem = 16px1em = 16px1vw = 14.40px1vh = 9.00px100% = 1200px1px = 0.0625rem
px

Used for rem conversions

px

Used for em conversions

px

Used for % conversions (assume width)

px

Used for vw conversions

px

Used for vh conversions

Tip: All values are computed live as you type. Click any output row to copy it. Settings persist across sessions.

Keep this context. This browser remembers what you last had open. A free account remembers the ones you name, on every machine you use.

Now use it on something

Every effect, block, page and template in the catalog is styled against tokens shaped exactly like these — so they take your values rather than fighting them.

Hand these tokens to an agent

npx shadcn@latest add https://hoverlab.dev/r/hoverlab.json

More designer tools

All 36 run in the tab — no account, no upload.See all