Skip to content

格式化与代码

字节数组实用工具

Convert between hex, base64, decimal, binary and ArrayBuffer.

Runs in your browser
Hex

48 65 6c 6c 6f 2c 20 41 6e 79 74 69 6d 65 21

Base64

SGVsbG8sIEFueXRpbWUh

Decimal

72, 101, 108, 108, 111, 44, 32, 65, 110, 121, 116, 105, 109, 101, 33

Binary

01001000 01100101 01101100 01101100 01101111 00101100 00100000 01000001 01101110 01111001 01110100 01101001 01101101 01100101 00100001

As UTF-8 text

Hello, Anytime!

编辑注

Understanding · The five ways languages spell 'a sequence of bytes'.

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

常见问题

Quick answers.

What is an ArrayBuffer?

An `ArrayBuffer` is a generic fixed-length raw binary data buffer. It cannot be manipulated directly; instead, you use a TypeArray or DataView to read and write the underlying content.

Does this tool work with files?

This tool is designed for small to medium byte strings and arrays. For very large files, your browser may experience performance lag during the conversion process.

Is my binary data secure?

Yes. All conversion logic is executed locally using JavaScript. No data is transmitted to an external server, ensuring your keys or sensitive payloads remain private.

Why use Hex instead of Base64?

Hexadecimal is often easier for humans to read and debug as it maps directly to byte boundaries. Base64 is more compact for transmission, reducing data size by approximately 33% compared to hex.

大家也在搜索

相关工具

More in this room.

查看所有 格式化与代码