PX ↔ REM Converter

Convert between px and rem instantly. Adjust the root font size for your project and get a reference table of common values — all calculated live in your browser.

10px32px
px
px
rem
rem
Live Preview 16px

The quick brown fox jumps over the lazy dog.

Common Values
px rem

How to use

Step 1

Enter a value

Type a px value to get the rem equivalent, or type a rem value to get px back. Conversion is live on every keystroke.

Step 2

Adjust the base

If your project sets a custom root font size (e.g. 62.5% = 10px), change the base to match. Slider and number input stay in sync.

Step 3

Use the table

Scroll down to the reference table for quick lookups of the most commonly used sizes. Values recalculate automatically when the base changes.

Step 4

Copy the result

Click the Copy button next to any rem output to copy the value to your clipboard — ready to paste into your CSS.

FAQ

"Root em" — a CSS unit relative to the font size of the root <html> element. Browsers default to 16px, so 1rem = 16px out of the box.
rem scales with the user's browser font settings, making your UI more accessible. It also makes global font scaling easy — change one root value and everything adjusts proportionally.
Browsers default to 16px. However, many projects set html { font-size: 62.5%; } to make 1rem = 10px for easier mental math. Always check your project's CSS reset or global styles.
This tool focuses on px ↔ rem conversion only. For other unit conversions (em, vw, pt, etc.) keep an eye on our other tools at StackFreeks Tools.

자주 묻는 질문

"Root em"의 약자로, 루트 <html> 요소의 폰트 크기를 기준으로 하는 CSS 단위입니다. 브라우저 기본값은 16px이므로 기본적으로 1rem = 16px입니다.
rem은 사용자의 브라우저 폰트 설정에 따라 확장되어 접근성이 향상됩니다. 또한 전체적인 폰트 크기 조정이 쉬워 루트 값 하나만 변경하면 모든 요소가 비례적으로 조정됩니다.
브라우저 기본값은 16px입니다. 하지만 많은 프로젝트에서 html { font-size: 62.5%; }를 설정해 1rem = 10px로 계산을 편하게 만듭니다. 프로젝트의 CSS 리셋이나 전역 스타일을 확인하세요.
이 도구는 px ↔ rem 변환만 지원합니다. em, vw, pt 등 다른 단위 변환은 StackFreeks Tools의 다른 도구를 확인해 주세요.
Sponsor
Get started on Vultr Get $300 free credit — valid for 30 days
Claim your credit →