Skip to content

计算工具

字体大小转换器

px ↔ rem ↔ em ↔ pt ↔ % — instant translation.

Runs in your browser

编辑注

Understanding · Five units, one piece of paper.

本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。

常见问题

Quick answers.

What is the difference between rem and em?

The `rem` unit is relative to the root element's font size, whereas `em` is relative to the font size of the parent element. Using `rem` provides more predictable scaling across a document.

Why is the root font size set to 16px?

Most modern web browsers use 16px as the default font size for the root element. You can adjust this value in the settings to match your specific CSS configuration.

Are the conversions accurate for print?

Yes. The point (pt) unit is traditionally used in print media, where 1pt is defined as 1/72 of an inch. The converter uses standard CSS ratios to translate these to screen pixels.

Is my data privacy protected?

Yes. This tool runs entirely in your local browser environment. No values or unit preferences are sent to our servers or stored externally.

大家也在搜索

相关工具

More in this room.

查看所有 计算工具