Home / Design / PX to REM Converter
PX to REM Converter
Convert px to rem and back with any root font size, a table of common sizes, and whole stylesheet conversion.
Free, no uploads, no sign-up. Runs 100% in your browser.
How PX to REM Converter works
Everything is worked out in your browser as you type. Nothing is uploaded or saved, and no account is needed. rem is px divided by the root font size (16px by default). Pasted CSS has every px value converted, and you can keep 1px borders as they are.
Input: CSS. Output: CSS.
How to use PX to REM Converter
- Pick px to rem or rem to px.
- Enter the value and root font size.
- Paste CSS to convert a whole stylesheet.
- Copy the result.
Tips
- Generated CSS works in every modern browser.
- Exports are produced locally, so you can work offline.
PX to REM Converter FAQ
- Are my files uploaded?
- No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
- Is it free? Are there limits or watermarks?
- Free. There are no file-size caps, daily quotas, accounts or watermarks.
- Does it work offline?
- Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.
Related tools
- CSS clamp() Generator: Make fluid font sizes and spacing with clamp() that scale between two viewport widths, with a live preview.
- CSS Minifier & Formatter: Minify CSS to save bytes or beautify it with one declaration per line, keeping strings and calc() intact.
- Color Palette Extractor: Extract dominant colors and export CSS/Tailwind palettes.
- Code to Image: Turn code into a clean picture with syntax colours, a window frame and a background, for slides, posts and docs.