Random Bitmap Generator

Build a grid of random zeros and ones, thirty two bits wide, ready to paste into code or use as noise data.

Bitmap rows16 generated
10011001111001110110101010000011
10000100000000111010011100000010
01101001011010010011010101000101
01010101001100110111011111001000
11100110010101110101011111111011
01010011010010101010110010010011
10011000011011000001011001001111
10100011011010110101110000011001
11000001000010111001101100011101
01100010011111110010001010011011
11000010100010000001000100010111
11001110010000101001100011011011
11110000001011110001011000011001
00110100111001000111100010100110
11011010000111001110001010000011
01000000011000101110111110011001
Runs locally in your browser

About the Random Bitmap Generator

A bitmap in the simplest sense is a rectangle of on and off pixels. This generator produces that rectangle as text: every row is thirty two independent bits, and the row count decides the height, so sixteen rows give you a 32 by 16 monochrome field of pure noise.

Rendered in a monospaced font the grid looks like static, which is exactly what you want when testing an image pipeline, checking that a compression routine handles incompressible input, or demonstrating why random data does not shrink. Programmers also use a block like this to seed cellular automata, to prime a dithering experiment, or to fill a sprite sheet placeholder during prototyping.

Choose the grid layout to keep one row per line, or the single stream layout to get one long run of bits with spaces between rows, which suits pasting into an array literal. Duplicate rows are permitted by default because a truly random field should be allowed to repeat, and at thirty two bits wide a collision is astronomically unlikely anyway. To turn a row into hexadecimal, drop it into the Number Base Converter, and use the Random Byte Generator when you want the same noise expressed as hex bytes.

How to use

  1. Set Rows to the height you want, keeping in mind each row is 32 bits wide.
  2. Pick the grid layout for a visual block, or the single stream layout for code.
  3. Press Generate, then copy the block or download it as a text file.

Common questions

How wide is the bitmap?
Every row is 32 bits, so the width is fixed and only the number of rows changes.
Is this an image file?
No, it is text. View it in a monospaced font to see the noise pattern, or feed the bits into your own renderer.
Why would I need random bits like this?
They are useful for compression tests, cellular automata seeds, dithering experiments and placeholder sprite data.
Can I get more than 200 rows?
Two hundred is the per press limit. Press Generate again and append the next block if you need a taller field.