🔍

首页Home › 图片工具Image Tools

🧮 查看图片字节(十六进制 Hex 查看器)Print Image Bytes (Hex Viewer)

打开图片(或任意文件)查看它的原始字节:经典 hexdump 格式(偏移量 + 十六进制 + ASCII),或纯十六进制、十进制、二进制,也能直接生成 C 数组、JavaScript Uint8Array 和 Python bytes 代码;可设置起始位置(支持 0x 十六进制)、显示长度和每行字节数,自动识别 PNG、JPEG、GIF、WebP 等格式。适合分析文件头、调试图片和嵌入式开发,全程在浏览器本地完成。Open an image (or any file) and look at its raw bytes. You get a classic hexdump (offset + hex + ASCII), plain hex, decimal or binary, or ready-made code as a C array, a JavaScript Uint8Array or Python bytes. Set the start offset (0x hex works), how many bytes to show and the bytes per line; PNG, JPEG, GIF, WebP and other formats are recognised automatically. Useful for inspecting file headers, debugging images and embedded work. Everything runs locally in your browser.

点击选择或拖放图片(或任意文件)Click or drop an image (or any file) here

使用说明与常见问题How-to & FAQ

「查看图片字节(十六进制 Hex 查看器)」是什么?What is the Print Image Bytes (Hex Viewer) tool?

打开图片(或任意文件)查看它的原始字节:经典 hexdump 格式(偏移量 + 十六进制 + ASCII),或纯十六进制、十进制、二进制,也能直接生成 C 数组、JavaScript Uint8Array 和 Python bytes 代码;可设置起始位置(支持 0x 十六进制)、显示长度和每行字节数,自动识别 PNG、JPEG、GIF、WebP 等格式。适合分析文件头、调试图片和嵌入式开发,全程在浏览器本地完成。Open an image (or any file) and look at its raw bytes. You get a classic hexdump (offset + hex + ASCII), plain hex, decimal or binary, or ready-made code as a C array, a JavaScript Uint8Array or Python bytes. Set the start offset (0x hex works), how many bytes to show and the bytes per line; PNG, JPEG, GIF, WebP and other formats are recognised automatically. Useful for inspecting file headers, debugging images and embedded work. Everything runs locally in your browser.

如何使用「查看图片字节(十六进制 Hex 查看器)」?How do I use the Print Image Bytes (Hex Viewer) tool?

在「查看图片字节(十六进制 Hex 查看器)」中,选择或拖入文件,按需设置「格式」、「每行字节」、「起始位置」、「显示字节数」等选项,然后点击「复制」、「下载 .txt」按钮即可。In the Print Image Bytes (Hex Viewer): Choose or drop your files, set "Format", "Bytes per line", "Start offset", "Bytes to show", then click "Copy", "Download .txt".

Hexdump 格式怎么看?How do I read the hexdump format?

每行左边 8 位是偏移量(十六进制,表示这一行第一个字节在文件中的位置),中间是这一行的字节值(每个两位十六进制,8 个一组),右边 |…| 里是对应的 ASCII 字符,不可打印的字节显示为“.”。例如 PNG 文件开头总是 89 50 4E 47 0D 0A 1A 0A,右边显示为 .PNG....On each line, the 8 digits on the left are the offset (in hex: where the line's first byte sits in the file), the middle shows the bytes as two-digit hex values in groups of 8, and |…| on the right shows them as ASCII, with unprintable bytes as ".". A PNG, for example, always starts with 89 50 4E 47 0D 0A 1A 0A, shown on the right as .PNG....

可以查看大文件吗?Can I view large files?

可以。工具只读取你要看的那一段(默认从第 0 字节开始的 4096 字节,最多一次 1 MB),所以几百 MB 的文件也能秒开;修改“起始位置”(可写十进制或 0x 开头的十六进制)就能跳到文件任意位置。Yes. Only the part you ask for is read (by default 4,096 bytes from byte 0, up to 1 MB at a time), so even files of hundreds of MB open instantly. Change the start offset (decimal or 0x hex) to jump anywhere in the file.

C 数组和 Python bytes 有什么用?What are the C array and Python bytes outputs for?

它们把字节直接写成可粘贴进代码的形式:C 数组常用于把小图标、字体嵌入单片机或嵌入式固件;JavaScript Uint8Array 和 Python bytes 方便在脚本或单元测试里内嵌一段二进制数据,无需单独的文件。They write the bytes in a form you can paste straight into code. A C array is the usual way to embed small icons or fonts into microcontroller or embedded firmware, and a JavaScript Uint8Array or Python bytes lets you inline binary data in a script or unit test without a separate file.

文件会上传吗?Is my file uploaded?

不会,文件只在浏览器本地读取,任何类型都可以查看。No. The file is read locally in your browser, and any file type can be viewed.

「查看图片字节(十六进制 Hex 查看器)」免费吗?需要注册吗?Is the Print Image Bytes (Hex Viewer) free? Do I need an account?

「查看图片字节(十六进制 Hex 查看器)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Print Image Bytes (Hex Viewer) is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

🧱 字节转图片(Hex / Base64 / 原始像素还原图片)Create Image from Bytes (Hex, Base64, Raw Pixels)🔣 图片转 RGB 数值(导出每个像素的颜色值)Convert Image to RGB Values🖌️ RGB 数值转图片(把颜色值画成像素图)Convert RGB Values to Image👾 文字转像素字(像素风文字图片)Convert Text to Pixel Art🟥 颜色可视化(色值列表生成色卡)Visualize Colors (Colour List to Swatches)🌫️ 位图模糊(BMP 高斯模糊 / 方框模糊)Blur a Bitmap (Gaussian & Box Blur)🎨 位图换色(替换 BMP 中的指定颜色)Change Bitmap Colours (Replace a Colour in a BMP)🔁 BGR 位图转 RGB(修正红蓝颠倒的 BMP)Convert BGR Bitmap to RGB Bitmap🌑 位图转灰度(导出 8 位灰度 BMP)Convert Bitmap to Grayscale🖥️ 位图转 VGA 颜色(16 色 / 256 色调色板 BMP)Convert Bitmap to VGA Colours (16 & 256-Colour Palette)🔢 位图转十六进制(BMP 像素 HEX 颜色 / C 数组)Convert Bitmap to Hex🔣 位图转 RGB 数值(BMP 像素颜色值导出)Convert Bitmap to RGB Values

← 全部工具All tools