首页Home › 编码与加密Encoding & Crypto
🖼️ 二进制转图片(0 和 1 画成像素图)Convert Binary to Image
把二进制数据画成图片:默认每一位是一个像素(1 = 黑、0 = 白,颜色可改,可反转),也可以每 8 位作为一个灰度像素,或每 24 位作为一个 RGB 像素。多行输入且每行长度相同时,每行文字就是一行像素;也可以手动指定宽度,或自动排成接近正方形。可按整数倍放大像素便于查看,导出无损 PNG。适合查看位图字模、二维码数据和二进制图案。全部在浏览器本地完成。Turn binary data into an image. By default each bit is one pixel (1 = black, 0 = white; colours can be changed or swapped), or every 8 bits can be one greyscale pixel, or every 24 bits one RGB pixel. When several lines have the same length, each line of text becomes a row of pixels; you can also set the width yourself or let the tool arrange a near-square. Pixels can be enlarged by a whole-number scale for viewing, and the result downloads as a lossless PNG. Useful for bitmap fonts, QR-code data and binary patterns. Everything runs in your browser.
使用说明与常见问题How-to & FAQ
「二进制转图片(0 和 1 画成像素图)」是什么?What is the Convert Binary to Image tool?
把二进制数据画成图片:默认每一位是一个像素(1 = 黑、0 = 白,颜色可改,可反转),也可以每 8 位作为一个灰度像素,或每 24 位作为一个 RGB 像素。多行输入且每行长度相同时,每行文字就是一行像素;也可以手动指定宽度,或自动排成接近正方形。可按整数倍放大像素便于查看,导出无损 PNG。适合查看位图字模、二维码数据和二进制图案。全部在浏览器本地完成。Turn binary data into an image. By default each bit is one pixel (1 = black, 0 = white; colours can be changed or swapped), or every 8 bits can be one greyscale pixel, or every 24 bits one RGB pixel. When several lines have the same length, each line of text becomes a row of pixels; you can also set the width yourself or let the tool arrange a near-square. Pixels can be enlarged by a whole-number scale for viewing, and the result downloads as a lossless PNG. Useful for bitmap fonts, QR-code data and binary patterns. Everything runs in your browser.
如何使用「二进制转图片(0 和 1 画成像素图)」?How do I use the Convert Binary to Image tool?
在「二进制转图片(0 和 1 画成像素图)」中,按需设置「像素格式」、「宽度(留空 = 自动)」、「放大倍数(1–64)」、「1 的颜色」、「0 的颜色」等选项,然后点击「下载 PNG」按钮即可。In the Convert Binary to Image: Set "Pixel format", "Width (blank = auto)", "Scale (1–64)", "Colour for 1", "Colour for 0", then click "Download PNG".
数据是怎么排成图片的?How is the data laid out?
如果输入有多行、每行的位数相同(且能整除每像素位数),每行文字就是一行像素;填写“宽度”时总是按宽度排列,从左到右、从上到下依次填充;都没有时自动排成接近正方形。最后一行不满时,空位保持透明,并会提示缺了几个像素。空格、逗号、下划线和 0b 前缀都会被忽略。If the input has several lines with the same number of bits (divisible by the bits per pixel), each line of text becomes a row of pixels. When you set a width the bits always fill rows of that width, left to right and top to bottom; otherwise the tool arranges a near-square. If the last row is not full, the empty spots stay transparent and the tool tells you how many pixels are missing. Spaces, commas, underscores and 0b prefixes are ignored.
灰度和 RGB 模式怎么读取?How do the greyscale and RGB modes read the bits?
灰度模式下每 8 位是一个 0–255 的亮度值(00000000 = 黑,11111111 = 白);RGB 模式下每 24 位依次是红、绿、蓝各 8 位。总位数必须是 8 或 24 的倍数,否则会提示还差几位。这两种模式下“1 和 0 的颜色”不起作用,“反转”会把颜色取反。In greyscale mode every 8 bits are one brightness value from 0 to 255 (00000000 = black, 11111111 = white). In RGB mode every 24 bits are 8 bits each of red, green and blue. The total must be a multiple of 8 or 24, otherwise the tool says how many bits are missing. In these modes the colours for 1 and 0 are not used, and Invert inverts the colours.
导出的 PNG 和预览一样吗?会上传吗?Is the PNG the same as the preview? Is anything uploaded?
一样。PNG 由工具直接逐像素编码(无损),放大使用最近邻方式,边缘锐利不模糊,颜色与预览完全一致。数据只在浏览器本地处理,不会上传。Yes. The PNG is encoded pixel by pixel by the tool itself (lossless), and enlarging uses nearest-neighbour scaling, so edges stay sharp and the colours match the preview exactly. The data is processed only in your browser and never uploaded.
有哪些选项可以调整?What options can I adjust?
「二进制转图片(0 和 1 画成像素图)」的设置:「像素格式」可选 每位 1 像素(黑白)/ 1 bit per pixel、每 8 位 1 像素(灰度)/ 8 bits per pixel (grey)、每 24 位 1 像素(RGB)/ 24 bits per pixel (RGB)(默认 每位 1 像素(黑白)/ 1 bit per pixel);「宽度(留空 = 自动)」可留空;「放大倍数(1–64)」默认 10;「1 的颜色」默认 #000000;「0 的颜色」默认 #ffffff;可勾选:「反转(0 和 1 对调 / 颜色取反)」。改动任一选项后结果会按新设置重新生成。Settings in the Convert Binary to Image — "Pixel format": 每位 1 像素(黑白)/ 1 bit per pixel, 每 8 位 1 像素(灰度)/ 8 bits per pixel (grey), 每 24 位 1 像素(RGB)/ 24 bits per pixel (RGB) (default 每位 1 像素(黑白)/ 1 bit per pixel); "Width (blank = auto)" optional; "Scale (1–64)" default 10; "Colour for 1" default #000000; "Colour for 0" default #ffffff; tick boxes: "Invert (swap 0 and 1 / invert colours)". Changing any option regenerates the result with the new setting.
编码和加密有什么区别?Is encoding the same as encryption?
编码(如 Base64、URL 编码)可直接还原,不提供保密性;加密需要密钥。「二进制转图片(0 和 1 画成像素图)」的处理全部在本地完成。No. Encoding (Base64, URL…) is reversible by anyone; encryption needs a key. The Convert Binary to Image works fully offline in your browser.
「二进制转图片(0 和 1 画成像素图)」免费吗?需要注册吗?Is the Convert Binary to Image free? Do I need an account?
「二进制转图片(0 和 1 画成像素图)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert Binary to Image is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.