Draw a tiny pixel tile, copy the CSS background-image — no image files.
Click or drag to paint. Click a painted pixel to erase it.
Max 64×64 px — larger images are rejected. Transparent pixels stay transparent.
This free tool turns a tiny pixel drawing into a tileable CSS background-image encoded as a base64 PNG data-URI. Instead of hosting a separate .png file, you paste a few lines of CSS and the pattern travels inline with your stylesheet — no extra HTTP request, nothing to upload, and it works offline.
A base64 CSS background image is a small raster image embedded directly inside your CSS as a data-URI, like background-image: url("data:image/png;base64,…"). The browser decodes the base64 string into a PNG in memory and paints it, so the image never needs its own network round-trip. For small, repeating tiles this is the fastest way to ship a background pattern.
background-image data-URI updates live; copy it and paste it into your stylesheet. Add background-repeat: repeat and the tile fills any element.background-repeat: repeat.image-rendering: pixelated to keep hard pixel edges when scaled..dots {
background-image: url("data:image/png;base64,iVBORw0KGgo…");
background-repeat: repeat;
image-rendering: pixelated;
}
Draw a single pixel in a 10×10 transparent tile above, copy the generated CSS, and you get exactly this — a repeating dot field with no image file.
Everything the UI does is also available headlessly. A plain HTTP API accepts a JSON spec (width, height, background, pixels) and returns the data-URI and CSS, so you can script pattern generation in any language. For AI assistants, an MCP (Model Context Protocol) server exposes generate_css_pattern and draw_dot tools so a model can produce CSS patterns on demand — see the dedicated AI CSS pattern generator guide for the MCP and API details. You can also browse the source and docs or connect to the MCP endpoint at https://mcp.eyn.art/.
It is a small image encoded directly in your stylesheet as a data-URI, e.g. url("data:image/png;base64,…"). The browser decodes it inline, so no separate image file is downloaded.
Draw a small tile (often 8×8 to 16×16 px), export it as a base64 PNG, and set background-repeat: repeat. The browser tiles the tiny image to form a seamless pattern.
For tiny tiles they are excellent — they remove an HTTP request and ship with your CSS. They are not recommended for large images, which inflate the stylesheet and cannot be cached separately.
Yes. Both the draw color and background color use rgba with an alpha slider, and the exported PNG preserves per-pixel transparency.
Yes. The tool ships an MCP server with generate_css_pattern and draw_dot tools, plus an HTTP API, so assistants and scripts can produce CSS patterns without the UI.