User Rating 0.0 β˜…β˜…β˜…β˜…β˜…
Total Usage 0 times
8 Γ— 8
50%
16px
Fill: 0% 0 / 64 cells
Is this tool helpful?

Your feedback helps us improve.

β˜… β˜… β˜… β˜… β˜…

About

A binary square is an N Γ— N grid where each cell holds exactly one of two states: 0 (off) or 1 (on). This simple constraint produces 2NΒ² possible configurations. For a modest 8 Γ— 8 grid, that is 2641.84 Γ— 1019 unique patterns. Getting symmetry right by hand is error-prone. A single misplaced cell breaks visual balance. This tool enforces symmetry constraints algorithmically so every toggle propagates to mirrored positions automatically.

The grid state maps directly to a binary string of length N2, read in row-major order. You can import or export this string to reproduce patterns exactly. Export supports lossless PNG at any cell resolution and scalable SVG. Note: very large grids (N > 48) may produce large files. The tool approximates visual weight by counting active cells as a fraction of total area.

binary art pixel grid pattern generator square grid creator pixel art tool binary pattern grid art

Formulas

Each cell at row r and column c maps to a linear index in a binary string:

i = r β‹… N + c

The full pattern is a binary string B of length N2 where B[i] ∈ {0, 1}. Fill density (visual weight) is computed as:

D = N2βˆ‘i=1 B[i]N2 Γ— 100%

Symmetry mirror indices for horizontal reflection:

Mirror of (r, c) β†’ (r, N βˆ’ 1 βˆ’ c)

For vertical reflection:

Mirror of (r, c) β†’ (N βˆ’ 1 βˆ’ r, c)

Quad symmetry combines both, adding the diagonal mirror (N βˆ’ 1 βˆ’ r, N βˆ’ 1 βˆ’ c).

Where N = grid dimension (rows = columns), r = row index (zero-based), c = column index (zero-based), B = binary string representation, D = fill density percentage, i = linear cell index.

Reference Data

Grid SizeTotal CellsUnique PatternsBinary String LengthCommon Use
4 Γ— 41665,53616 bitsIcons, favicons
5 Γ— 52533,554,43225 bitsQR alignment patterns
8 Γ— 8641.84 Γ— 101964 bitsChess boards, retro sprites
10 Γ— 101001.27 Γ— 1030100 bitsPixel art thumbnails
12 Γ— 121442.23 Γ— 1043144 bitsTile patterns
16 Γ— 162561.16 Γ— 1077256 bitsGame sprites, emoji
20 Γ— 204002.58 Γ— 10120400 bitsDetailed pixel art
24 Γ— 245769.87 Γ— 10173576 bitsToolbar icons
32 Γ— 321,0241.80 Γ— 103081,024 bitsStandard icon size
48 Γ— 482,304> 106932,304 bitsHigh-res icons
64 Γ— 644,096> 1012334,096 bitsDetailed sprites, textures

Frequently Asked Questions

When you toggle cell (r, c) with horizontal symmetry active, the tool simultaneously toggles (r, N βˆ’ 1 βˆ’ c). Vertical mirrors across the horizontal midline. Quad symmetry mirrors across both axes plus the diagonal opposite, toggling up to 4 cells per click. This guarantees mathematical symmetry without manual counting.
The binary string is a row-major sequence of 0s and 1s with length exactly N2. For an 8 Γ— 8 grid, it must be exactly 64 characters. Paste any valid binary string into the import field. If the length does not match a perfect square, the tool rejects it with an error. Leading zeros are significant.
Each cell is rendered at the pixel size set by the cell-size slider (default 16 pixels). An 8 Γ— 8 grid at 16px per cell produces a 128 Γ— 128px PNG. For print quality at 300DPI, set cell size to 32 or higher. The SVG export is resolution-independent and always crisp.
Yes. Random generation uses crypto.getRandomValues and then enforces the selected symmetry mode. With quad symmetry on a 16 Γ— 16 grid, only the top-left 8 Γ— 8 quadrant is randomized. The remaining three quadrants are mirrored copies. Fill density can be adjusted via the density slider before randomizing.
The patterns are mathematically generated from your input. No copyrighted assets are embedded. The output is a pure binary matrix visualization. You own the arrangement you create. However, if a pattern coincidentally resembles a trademarked symbol, standard trademark law applies independently of this tool.
The density slider sets a probability threshold per cell during random generation. With symmetry active, mirrored cells are forced to match their source cell, so the effective density converges toward the slider value but may deviate by several percentage points. For a 4 Γ— 4 grid with quad symmetry, only 4 independent cells exist, making fine density control impossible. Larger grids produce closer approximations.