How our tools work
Last updated
Every tool on this site follows a fixed, documented method, so the same input always gives the same output. This page explains those methods in plain language, with enough detail to check our work.
Everything runs in your browser
The tools are plain JavaScript that runs on your device. Heavy calculations run in a Web Worker, a background thread in your browser,
so the page stays responsive. The libraries used for PDF and file exports are bundled with the site, not loaded from other servers.
When you add an image, it is read into your browser's memory and processed there; it is never sent anywhere.
Your settings are saved in the part of the address after #, which browsers do not send to web servers.
Image to pixel art converter
1. Reading the image
Your image is drawn onto a hidden canvas, scaled down to at most 1,024 pixels on its longest side. That is more than enough detail for grids up to 256 cells wide and keeps large photos fast.
2. Averaging into grid cells
Each grid cell takes the average color of every source pixel it covers (an area average), weighted by transparency so see-through pixels do not darken the result. A cell is left empty when, on average, it is less than 50% opaque.
3. Choosing the colors
With Auto, the converter groups the cell colors into the number of colors you asked for using k-means clustering. It starts from the image's average color, adds each next starting color at the point farthest from the ones already chosen, then refines the groups for up to 10 rounds. If the picture has fewer distinct colors than you asked for, it keeps them as they are. With a fixed palette, each cell simply takes the closest palette color.
"Closest" uses a weighted color distance (often called redmean) that gives green more weight and adjusts red and blue by brightness, which matches human color perception better than plain RGB distance.
4. Optional dithering
Dithering uses Floyd–Steinberg error diffusion: after a cell is matched, the difference between its real color and the chosen color is passed on to the neighbouring cells (7/16 to the right and 3/16, 5/16 and 1/16 to the row below). Empty cells are skipped.
5. The legend
Unused colors are removed and the rest are sorted from most to least used, so color 1 is always the one you need most of.
Circle generator
For a diameter d, a block is inside the circle when its centre lies within a true circle of radius d/2 drawn on the grid. The outline styles then keep only edge blocks:
- Thin: inside blocks with at least one of their 4 side neighbours outside the circle. Diagonal steps touch only at corners.
- Thick: inside blocks with any of their 8 neighbours (sides or corners) outside. Every block shares a face with the next.
- Filled: every inside block.
Odd diameters therefore have one centre block, and even diameters have a centre on the corner between four blocks. The quarter count excludes the centre row and column on odd diameters so that four quarters plus that cross add up to the total.
Sphere and dome generator
The sphere uses the same idea in three dimensions: a block is inside when its centre lies within a true sphere of radius d/2.
- Thin shell: inside blocks with at least one of their 6 face neighbours outside.
- Thick shell: inside blocks with any of their 26 neighbours (faces, edges or corners) outside.
- Filled: every inside block.
A dome keeps the top half of the layers, including the widest layer when the diameter is odd, and is open at the bottom. A custom dome height uses the top half of an ellipsoid instead: the width stays the same while the vertical axis is stretched or squashed so the dome has exactly the number of layers you choose. With the default height, the result is identical to a half-sphere.
Minecraft pixel art generator
The image is averaged into grid cells exactly as in the converter above. Each cell is then compared with the average texture color of every allowed block and given the closest one. Colors are compared in the CIELAB color space, which is designed so that equal distances look like equal differences to the human eye.
- Block list: only full, solid blocks that look the same from every side. Gravity blocks are skipped for wall art.
- Versions: each block is tagged with the first Java version that has it, so choosing an older version removes newer blocks. Schematic files use the data version of the oldest release that contains every block used.
- Limiting block types: the least-used block is removed and its cells are matched again, repeating until the limit is met.
- Dithering: Floyd–Steinberg error diffusion, using the actual block colors.
Data sources and credits
Average block colors come from the open-source Blockpedia project (MIT License), which measured them from the game's textures. Version availability was derived from the block lists in PrismarineJS minecraft-data (MIT License). We do not copy or show any Minecraft textures; the preview uses flat average colors.
Minecraft map art generator
Map colors come from the official table on the Minecraft Wiki ("Map item format"): 61 base colors, each shown in shades multiplied by 180, 220, 255 or 135 out of 255. Water (its color depends on depth) and the ×135 shade (not buildable in survival) are not used. Each base color is assigned one survival-friendly block, chosen from the blocks the wiki lists for that color.
- Matching: each pixel gets the closest available color in CIELAB, with optional Floyd–Steinberg dithering.
- Staircase heights: a block is darker when lower than its northern neighbour, normal when level and lighter when higher. Heights are assigned column by column, as low as each shade allows, starting from a reference row north of the image.
- Tested: on 20 random 128 × 128 shade layouts, every block's height gave the intended shade, and the tallest column averaged about half that of a plain staircase.
Block gradient generator
Anchor colors are blended in the OKLab color space (Björn Ottosson, 2020), which spaces colors evenly for the eye. Each step gets the closest allowed block by OKLab distance. With repeats turned off, every (step, block) pair is ranked by distance and assigned closest-first, so no block is used twice; end blocks you choose stay at the ends. Match labels: exact under 0.02, close under 0.05, fair under 0.1 and rough above that (OKLab distance).
Minecraft shapes and banners
- Shape generator (cylinders, cones, pyramids, rings, arches, stars, hearts): round shapes are built from the same circle code as the circle generator, layer by layer. An upright open cylinder gives exactly the circle generator's ring on every layer (checked for diameters 3 to 80 in every style). Step pyramids shrink by one block per side per layer, and arches are the top half of the matching circle.
- Arch, cone and spiral staircase generators use the same shape engine with presets for those builds; the spiral staircase places one step per layer around the stairwell.
- Oval generator takes a separate width and height and draws the ellipse with row-by-row block counts.
- Banner maker and banner letters: pattern names, IDs and pattern items come from the Minecraft Wiki and are kept in one data file shared by both tools and the banner guide. Dye colors are the game's Java dye colors. Commands are written for the current Java item format and the format before Java 1.20.5; Bedrock's /give cannot add banner patterns, so Bedrock players get loom steps instead.
Pixel art, sprite and grid tools
- Pixel art upscaler: sharp mode is nearest-neighbour scaling, so every pixel becomes an exact square; Scale2x is offered as a smoothing option; downscale detects how much an image was enlarged and shrinks it back to one pixel per square.
- Pixelate image: averages the colors inside each block, for the whole image or only the areas you select.
- Sprite sheet cutter: cuts frames on a grid you set, or auto-detects the empty gaps between sprites to set frame size, offset and spacing. Sprite sheet to GIF encodes frames with gifenc (MIT) with image smoothing turned off, so pixels stay sharp.
- Graph, dot, isometric, polar and hex paper are drawn as vector PDFs at the exact spacing you choose, so they print to scale at 100%.
- Granny square colors are assigned so no color repeats inside a square and squares side by side get different centres where possible. Quilt block cutting sizes include ¼″ seam allowances; flying geese use the no-waste method.
How the craft pattern makers work
The cross stitch, needlepoint, fuse bead, bead loom, peyote, latch hook, friendship bracelet, crochet, knitting and brick mosaic makers share one engine: the image is averaged down to the chart size, every cell is matched to the nearest color in CIELAB, and the least-used colors are dropped one by one until the chart fits your color limit. Knitting and tapestry crochet charts add rows in proportion to your gauge (rows ÷ stitches per 10 cm) so the finished piece keeps the picture's shape.
- Thread colors: 454 DMC-compatible thread numbers, names and approximate colors from the MIT-licensed dmc package by Sharla Gelfand, which credits the original list to adrianj/CrossStitchCreator. Screen colors of thread are approximations.
- Skein estimates: a full cross uses about (2√2 + 2) × the stitch size of thread, plus 35% for starting, ending and travel; a skein is 8 m of six strands.
- Bead and brick colors: our own generic palettes named by color, not any manufacturer's official values. Paste your own HEX codes for an exact match.
- Written instructions: rows start at the bottom; flat right-side rows read right to left. C2C rows run diagonally from the bottom-left corner and alternate direction.
- Bead shape: loom and peyote charts scale the number of rows by bead width ÷ bead height (11/0 cylinder beads are about 1.6 mm across and 1.3 mm long and lie with the hole sideways), so the woven piece keeps the picture's proportions. Peyote charts offset every other column by half a bead; brick stitch offsets every other row.
- Friendship bracelets: alpha patterns use one base string per column; rows alternate forward (left to right) and backward knots, and the length uses your measured rows per cm.
- Punch needle: uses the paint by numbers region engine below with more merging for bigger shapes, and mirrors the outline left to right for tracing on the back of the cloth.
- Paint by numbers: k-means picks the colors (or your pasted paint colors are used as they are), a 3×3 majority filter removes speckle, and areas smaller than the merge setting or no more than two pixels wide are joined to the neighbour they share the longest border with. Each number sits at the point of its area farthest from the edges, found with a chamfer distance transform.
- String art: nails are spaced evenly around a circle. From the current nail, every line to a nail that is not a close neighbour is scored by the average remaining darkness of the pixels it crosses; the best line is taken, its darkness is reduced by the line weight, and no nail pair is used twice. This greedy method approximates the photo; it does not find the best possible path.
How the 3D print converters work
- STL files are binary STL in millimetres, written in your browser. Every model is a closed solid: our tests check that each edge is shared by exactly two triangles, including shapes with holes and pixels that touch only at a corner.
- Reliefs and lithophanes sample the image on a grid (150, 250 or 400 points across) and turn brightness into height or thickness. A square relief has 4(n−1)² + 8(n−1) triangles, so file size grows with the square of the detail setting.
- Extruded shapes and SVG to STL trace the outlines of the shape, simplify them slightly, and extrude them straight up, so walls are vertical and tops are flat.
Print and stencil tools
- Block posters split the image into sheets with a glue overlap; each sheet is rendered at up to 200 dpi without upscaling beyond the source.
- Stencils use auto levels, a blur, a threshold and speck removal. Islands are found by labelling the parts of the sheet that do not touch the edge; bridges are drawn along the shortest path to the connected sheet.
- SVG cut files trace pixel edges exactly (no smoothing) and are written at the physical size you choose.
- Letter and number stencils use three stencil fonts under the SIL Open Font License (Allerta Stencil, Stardos Stencil, Saira Stencil One), drawn with opentype.js (MIT) so the capital height is exactly the size you set.
- Line art uses a difference of Gaussians edge filter; halftones size each dot so its area matches the darkness, with classic CMYK screen angles (15°, 75°, 0°, 45°).
Export formats
- PNG: one image pixel per cell at 1×, or enlarged with sharp edges (no blurring) at higher scales.
- Pattern PDF (converter, circle): colored cells with numbered rows and columns, color numbers inside cells when they are large enough, and a legend page with counts. Large grids are split across pages so squares stay at least 3.5 mm wide.
- Grid PDF (grid maker): one page fitted to Letter or A4, with squares up to 15 mm.
- Layer PDF (sphere): one page per layer, with the layer below shown in grey.
- .schem: Sponge Schematic version 2. Spheres use data version 3465 (Java Edition 1.20.1); pixel art uses the oldest version that has every block used. Newer game versions upgrade older files automatically.
- .litematic: Litematica schematic format version 5 with one region, for the Litematica mod.
How we test
- Symmetry: every circle and sphere is checked to be identical when mirrored left-right, top-bottom and (for spheres) layer by layer.
- Consistent counts: the four quarters of a circle plus its centre cross must add up to the total; a dome must equal the top half of the matching sphere.
- Independent reference: our thick and filled sphere counts were compared with a published table from another generator at 13 sizes from 5 to 64 blocks, and all of them matched.
- Closed shells: a flood-fill test confirms that nothing can move face to face from outside a hollow sphere to its inside, in both thin and thick styles.
- File round-trips: exported schematic files are read back with a separate decoder and compared with the original layout block by block.
- Reference tables on our pages are generated from the same code as the tools at build time, so they cannot drift apart.
How guides are researched and checked
- Research the question. We look at what people search for and the questions they ask, then check the pages that already rank, so each guide answers more than they do.
- Use our own numbers. Charts, block counts, stitch counts and tables in guides are generated by the same code as the tools at build time.
- Check the facts. Minecraft details are checked against the Minecraft Wiki; craft steps follow standard techniques and are compared with our own tool pages so the two always agree.
- Remove what we can't confirm. If a claim can't be confirmed, it is left out rather than guessed.
- Keep it current. Every guide shows its last updated date, and reported mistakes are fixed and re-dated.
Known limitations
- Colors on screen and on paper differ. Printed results depend on your printer, paper and ink.
- Automatic color choice is a best guess. For artwork with important small details, such as eyes, you may want to fix a few cells by hand.
- Other generators round circles and spheres differently, so their block counts can differ from ours. Use one tool for a whole build.
- Schematic files are for Java Edition. Bedrock Edition does not load .schem or .litematic files.
Spotted an error? Please contact us.