100% in-browser — zero uploads Batch + zip download, free Maintained 2026 · 0 uploads

1×1 PIXEL PNG GENERATOR · FREE · NO UPLOAD

1×1 Pixel PNG Generator

The humble 1×1 PNG: spacer in email layouts, stand-in in CSS prototypes, base for programmatic sprites. Pick a color (or transparent), pick dimensions, download. Also generates 1px lines and rectangles for layout debugging.

Drop files here or

Processed locally in your browser — nothing is uploaded. Batch supported.

0 uploads — verified locally 0 uploads

The 2026 state of 1×1 Pixel PNG Generator

Field2026 state
Sizes1×1 (default) · 1×N lines · any W×H up to 4096px
ColorsAny hex + alpha (transparent 1×1 = classic spacer)
OutputPNG, losslessly tiny (a solid 1×1 is ~70 bytes)
Email-safeWorks in every email client since HTML email exists
CSS usagebackground:url(data:...) or file; perfect for grid debugging overlays
Programmatic useFeed into your sprite pipeline as the known-solid tile
No trackingUnlike hosted tracking pixels, this file is yours — no third party sees it load
BatchGenerate a whole palette set at once (one zip)

Code example

const c = document.createElement('canvas');
c.width = 1; c.height = 1;
c.getContext('2d').fillStyle = '#3d63ff';
c.getContext('2d').fillRect(0, 0, 1, 1);
c.toBlob(b => saveAs(b, '1x1.png'), 'image/png');

FAQ

What is a 1×1 PNG used for?

Email layout spacers, CSS sizing tricks, placeholder sprites, and debugging grids. It's the smallest possible image file — under 100 bytes — and every client since the 90s renders it.

How do I make a transparent 1×1?

Set alpha to 0 and download — the classic invisible spacer for HTML email layouts where margins are stripped by clients.

Can I generate a batch of different colors?

Yes — the palette generator mode creates one PNG per color in a comma-separated list and zips them.

Is a 1px line PNG better than a CSS border?

In HTML email, yes — borders are inconsistently supported, an image line renders everywhere. On the web, prefer CSS borders; use the PNG for email and for email-client testing.

Last updated: · Launch: 1×1/lines/rectangles, alpha, palette batch zip · change history