Home / Tools / Web and CSS
PX to REM Converter
Convert pixels to rem and em, with a full table.
Runs in your browserFree, no sign-up
Loading tool…
How to use it
- Set the root font size.
- Type a value or paste CSS.
- Copy the result.
About this tool
Convert any pixel value to rem based on your root font size (16px by default), or rem back to pixels. A table shows common sizes, and you can convert a whole CSS file's px values at once.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
Why use rem?
rem sizes scale when the user changes their browser font size, which helps accessibility.
Web and CSS
All web and cssMore tools like this
Web and CSSUnix Timestamp ConverterConvert Unix timestamps to dates and dates to timestamps.Open →Web and CSSColor ConverterHEX, RGB and HSL conversion with a contrast checker.Open →Web and CSSMarkdown PreviewWrite Markdown and see the result, then copy the HTML.Opens filesOpen →Web and CSSCSS Minifier & BeautifierMinify CSS for production or beautify it to read.Opens filesOpen →Web and CSSCSS Gradient GeneratorDesign linear, radial and conic gradients and copy the CSS.Open →Web and CSSCSS Box Shadow GeneratorBuild layered box shadows visually and copy the CSS.Open →Web and CSSColor Contrast CheckerCheck text and background colors against WCAG AA and AAA.Open →Web and CSSMeta Tag GeneratorSEO, Open Graph and Twitter meta tags with a live preview.Open →