🔢 十进制转十六进制Decimal to Hex Converter
十进制转十六进制在线工具:每行一个数批量转换,BigInt 精确支持超大整数、小数和负数,可显示手算步骤。Convert decimal to hexadecimal online: one number per line, exact BigInt maths for huge integers, fractions and negatives, with optional step-by-step working.
使用说明与常见问题How-to & FAQ
「十进制转十六进制」是什么?What is the Decimal to Hex Converter tool?
十进制转十六进制在线工具:每行一个数批量转换,BigInt 精确支持超大整数、小数和负数,可显示手算步骤。Convert decimal to hexadecimal online: one number per line, exact BigInt maths for huge integers, fractions and negatives, with optional step-by-step working.
如何使用「十进制转十六进制」?How do I use the Decimal to Hex Converter tool?
在「十进制转十六进制」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「255」,得到「FF」。In the Decimal to Hex Converter: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it. Example: "255" → "FF".
怎么手算十进制转十六进制?How do I convert decimal to hexadecimal by hand?
例如:255 ÷ 16 = 15 余 15,得 FF。勾选“显示计算步骤”可以看到每个数的完整过程。For example: 255 ÷ 16 = 15 r 15, giving FF. Tick "Show steps" to see the full working for each number.
支持多大的数?能批量转换吗?How big can the numbers be? Can I convert many at once?
使用 BigInt 精确计算,单个数最多 20000 位,不会像普通计算器那样在 2^53 之后丢失精度;每行一个数即可批量转换,空行会保留。It uses exact BigInt arithmetic, up to 20,000 digits per number, so there is no precision loss past 2^53. Put one number per line to convert in bulk; blank lines are kept.
支持小数和负数吗?Are fractions and negative numbers supported?
支持。负数按“负号 + 数值”转换(不是补码);小数部分最多输出 32 位,若无法在 32 位内除尽,结尾显示“…”,例如十进制 0.1 在二进制中是无限循环小数。Yes. Negatives are converted as sign + magnitude (not two's complement). Fractions are output to at most 32 digits, ending in "…" when they do not terminate — decimal 0.1 is an infinitely repeating binary fraction, for example.
代码或数据会被上传吗?Is my code or data uploaded?
不会。「十进制转十六进制」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The Decimal to Hex Converter runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「十进制转十六进制」免费吗?需要注册吗?Is the Decimal to Hex Converter free? Do I need an account?
「十进制转十六进制」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Decimal to Hex Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.