px ⇄ rem Converter

Convert px to rem/em units with custom root font size, batch support

px ⇄ rem Converter is a free online Developer tool. Convert px to rem/em units with custom root font size, batch support Related terms: px · rem · em · 单位 · 换算 · css. Use it on this page without signing in.

换算结果
161rem
241.5rem
322rem
483rem
805rem
常用参考(根字号 16px)
pxrem说明
8px0.5rem小标签
16px1rem正文基准
20px1.25rem强调文字
24px1.5rem小标题
32px2rem标题

rem 相对根元素(html)字号,em 相对父元素。计算在浏览器本地完成。

Help

使用说明

  1. 设置根字号(默认 16px,对应浏览器默认)
  2. 输入 px 值自动换算为 rem/em,或反向输入
  3. 支持批量换算:每行一个数值
  4. 结果一键复制

常见问题

  • 数据处理安全吗? 全程浏览器本地计算,不联网
  • rem 和 em 区别? rem 相对根元素字号,em 相对父元素字号
  • 项目根字号不是 16? 在设置里改成你的根字号即可,如 14px

More Developer

View all

FAQ about px ⇄ rem Converter

What can px ⇄ rem Converter do?

px ⇄ rem Converter is a Developer tool. Convert px to rem/em units with custom root font size, batch support You can finish the job on this page.

Who should use px ⇄ rem Converter?

Anyone handling px · rem · em · 单位 · 换算 · css who does not want to install desktop software can use px ⇄ rem Converter in the browser.

Is px ⇄ rem Converter safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into px ⇄ rem Converter just because you used it.

What similar tools exist?

Related tools in the same Developer group are listed at the bottom of this page.