跳过主要内容

数字转换

在不同数制、颜色格式、分数和罗马数字之间转换。

十六进制转十进制
将十六进制数转换为十进制。
十进制到十六进制
将十进制数转换为十六进制。
八进制到十进制
将八进制数字转换为十进制。
十进制到八进制
将十进制数转换为八进制。
二进制转十进制
将二进制数转换为十进制。
十进制到二进制
将十进制数字转换为二进制。
二进制转十六进制
将二进制数转换为十六进制。
十六进制到二进制
将十六进制数转换为二进制。
ASCII 表
完整的可打印 ASCII 参考表,包含十进制、十六进制和八进制代码。
十六进制到 ASCII
将十六进制字节序列转换回文本。
ASCII 转十六进制
将文本转换为十六进制字节值。
二进制转文本
将8位二进制序列解码为文本。
文本转二进制
将文本编码为 8 位二进制组。
分数转小数
将像3/4这样的分数转换为小数值。
十进制到分数
将小数转换为精确简化的分数。
百分比转小数
将百分比转换为小数。
小数转百分比
将十进制数转换为百分比。
百分比转分数
将百分比转换为简化分数。
分数转百分比
将分数转换为百分比。
十六进制转RGB
将十六进制颜色代码转换为rgb()值。
RGB转Hex
将 rgb() 颜色转换为十六进制代码。
十六进制转RGBA
将带有alpha的十六进制颜色转换为rgba()值。
RGBA转Hex
将rgba()颜色转换为8位十六进制代码。
罗马数字表
罗马数字及其值的参考表。
罗马数字转整数
将罗马数字转换为整数。
数字转罗马数字
将整数转换为罗马数字。

数字转换 — About These Tools

Number conversion translates a value between representations: binary, octal, decimal, hex, Roman numerals, fractions, and color models. The math runs instantly in your browser, with full precision and no rounding surprises.

常见问题

Why do programmers use hexadecimal?

Hex maps 4 bits to one character, so it is a compact, human-readable view of binary data — memory addresses, colors, and byte values are all conventionally written in hex.

Can I convert negative numbers?

Yes, decimal inputs accept negatives and show the two’s-complement representation where relevant. Roman numerals are the exception — they have no zero or negative form.

Is the conversion exact for large numbers?

Yes. Conversions use arbitrary-precision math where the format allows it, so values beyond the 64-bit range still convert correctly.

其他类别