How do I convert rem to px?
Paste the CSS into the input field, set the root font size if it isn't 16, and press Convert. Every rem value is converted to px in the output.
Is it free?
Yes. No signup, no length cap, no run limit, since the conversion runs on your own device.
Is my CSS uploaded anywhere?
No, the conversion runs entirely client side. Nothing is transmitted, stored or logged.
What is the default root font size?
16px, the common browser default. Change it in the root font size field if the project uses a different value.
How do I find the project's actual root font size?
Check the global CSS for a rule on the html element, or inspect the page in the browser's dev tools and read the computed font-size for html directly.
Why doesn't the converted px value match what renders on screen?
The root font size entered probably doesn't match the project's real one. A CSS reset or an inherited style can quietly change it without anyone touching the component being checked.
Does 1rem always equal 16px?
Only if the root font size is 16px, common but not universal. Some CSS resets set it to a different value, most often 10px.
Does it convert every rem value in a whole stylesheet at once?
Yes, paste as much CSS as needed and every number followed by 'rem' is converted in one pass.
Does it affect anything besides rem values?
No, selectors, property names, colors, and other units like percentages or viewport units are left exactly as they were.
Does it work on phones?
Yes, the layout adapts to narrow screens.
What's the difference between this and the px to rem converter?
This converts rem values to px. The px to rem converter performs the reverse, useful when migrating a fixed px design to a fluid, rem-based one.
Why would px values from rem be useful, if rem is the better choice?
Rem is the right choice for implementation, but most screen rulers, dev tools and design handoff tools report sizes in pixels, so translating back makes comparison and review considerably faster.
Is there an API or batch mode?
Not currently. This is a single-paste, browser-based converter.
Does it handle negative rem values, such as negative margins?
Yes, a negative value such as '-0.5rem' converts correctly to its negative px equivalent.
Does it convert rem values inside a media query?
Yes, it scans the entire pasted text for any number followed by 'rem', regardless of its position in the CSS.
Will this alter the CSS syntax in any way?
No, only the numeric value and unit are replaced. Everything around it, brackets, semicolons, property names, remains exactly as written.
Can this help debug an element rendering too large or too small?
Yes, converting a rem value against both the assumed and actual root font size is a fast way to check whether a mismatched base is the cause.
Is confidential data safe to paste here?
Yes, nothing is transmitted anywhere. Processing happens locally in your browser.
Does it convert rem used for font sizes and spacing alike?
Yes, it converts every occurrence of a number followed by 'rem' in the pasted text, regardless of which property it belongs to.
What happens if the wrong root font size is entered by mistake?
The conversion still runs, but the resulting px values will be based on the wrong base and won't match the actual rendered page.