转换器

PX转REM转换器

Convert pixel values to REM units based on configurable root font size.

默认: 16px。

什么是PX到REM的转换?

将<strong>PX</strong>转换为<strong>REM</strong>是常见任务。Convert pixel values to REM units based on configurable root font size.

转换原理

将像素值除以根字体大小。

Common PX to REM Conversions

  • 12px = 0.75rem — small/caption text
  • 14px = 0.875rem — body text (compact)
  • 16px = 1rem — default body text
  • 20px = 1.25rem — subheadings
  • 24px = 1.5rem — h3 headings
  • 32px = 2rem — h2 headings

Why Use This Converter?

  • Instant results — paste a value and get the converted output immediately.
  • Copy-ready CSS — one-click copy with properly formatted syntax.
  • Shareable URLs — pre-fill values via URL for easy team sharing.
  • No installation — works in any browser, on any device.

FAQ

转换器的精度如何?

使用数学精确的算法。

免费吗?

是的,完全免费。

可以分享结果吗?

可以,使用分享链接按钮。