Everything below is answered in full, nothing to click open.
How do I convert rem to px?
Paste your CSS into the box above, set the root font size if it's not 16, and press Convert. Every rem value is converted to px in the output.
Is the rem to px converter free?
Yes. No signup, no paste limit, no usage limit, it runs entirely in your browser.
Is my CSS uploaded anywhere?
No. The conversion runs on your own device. Nothing is transmitted or stored.
What is the default root font size?
16px, the common browser default. You can change it in the root font size field if your project uses something else.
How do I find my project's actual root font size?
Check your global CSS for a rule on the html element, or inspect the page in your browser's dev tools and look at the computed font-size for html directly.
Why did my converted px value not match what I see on screen?
The root font size entered probably doesn't match your project's real one. A CSS reset or an inherited style can quietly change it without anyone touching the component you're checking.
Does 1rem always equal 16px?
Only if the root font size is 16px, which is 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 you want and every number followed by 'rem' gets converted in one pass.
Does it touch anything besides rem values?
No, selectors, property names, colors, other units like percentages or viewport units, are all left exactly as they were.
Does it work on phones?
Yes, the layout stacks on narrow screens.
What is the difference between this and the px to rem converter?
This converts rem values to px. The px to rem converter does the reverse, useful when migrating a fixed px design to a fluid, rem-based one.
Why would I want px values back from rem, 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 much faster.
Is there a batch mode or an API?
Not yet. Paste, convert, copy is the fastest route for now.
Does it handle negative rem values, like negative margins?
Yes, a negative value like '-0.5rem' converts correctly to its negative px equivalent.
Does it convert rem inside a media query?
Yes, since it scans the whole pasted text for any number followed by 'rem', regardless of where in the CSS it appears.
Will this break my CSS syntax?
No, only the numeric value and unit are replaced. Everything around it, brackets, semicolons, property names, stays exactly as written.
Can I use this to debug an element that renders 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 my data safe to paste if it's confidential?
Yes, nothing is transmitted anywhere. Processing happens locally in your browser.
Does it convert rem used for font sizes and spacing both?
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 I enter the wrong root font size by mistake?
The conversion still runs, but the resulting px values will be based on the wrong base and won't match your actual rendered page.