Free Shopify Tool
Free PX to REM Converter (Pixels to REM)
A pixel to rem calculator for responsive CSS: convert px to rem and em with your base font size, and rem back to pixels.
- 100% free
- No sign-up
- Runs in your browser — nothing is uploaded
About this tool
Rem units scale with the user’s font size, which is better for accessibility than fixed pixels. Most browsers use a base of 16px.
Divide pixels by the base size to get rem. If your theme sets html font-size to 62.5%, change the base to 10.
How it works
- rem = px ÷ base
- px = rem × base
Frequently asked questions
Quick answers to what people ask most.
What is the default base font size?
16px in almost all browsers.
Rem or em?
Rem is relative to the page root. Em is relative to the parent element. Rem is easier to control.
Why does my Shopify theme use 62.5%?
Some themes set 10px as the base so 1rem equals 10px.
More free Shopify tools
Free, no sign-up, built by the Zohanify team.
Percentage Calculator
Percent of, percent change, increase and decrease.
Open tool →
Tag Formatter
Clean, dedupe and format tag lists.
Open tool →
Discount Code Generator
Bulk random discount codes with a prefix.
Open tool →
Dropshipping Profit Calculator
Profit per order, margin and break-even ROAS for dropshipping.
Open tool →
Payback Period Calculator
How long an investment takes to pay itself back.
Open tool →
Inventory Turnover Calculator
Inventory turnover and days to sell stock.
Open tool →
Want a plan for your own store?
We audit your Shopify store and send a written plan with a fixed price before any work starts. From $79, fixed price.