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
10010101010110001110111101010101
00001110110100101001001100000110
11000100010110100010011010110101
11111001001011011110110011100000
11011010100010010100010011001101
01110111100010101111111110000010
11001101110011010111010101010110
01110100011010110111011100000001
01011010000010011011100011100101
10111100111110111000110101111011
01111111100110010010101000111110
00010100010111011110000101011011
10110010101111101001100110011111
10000011001100101100101010101001
00000000001001001100010100000000
11101100100110000011100010011110
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.