Skip to content
🖼️

Placeholder Image Generator

Create SVG placeholder images as data URIs for mockups and layouts.

Runs in your browser

Updated

Generated placeholder preview

Raw SVG size: 0 bytes

Download a file

Nothing downloaded yet.

SVG stays vector, so it is the smallest file and scales to any size. PNG keeps transparency, which is what you want for a rounded avatar. JPG has no transparency, so rounded corners are filled with the background colour instead.

A data URI keeps the placeholder in your stylesheet with no extra HTTP request. For anything reused a lot, a real placeholder file is smaller once the browser caches it.

One SVG drives everything

The page composes a single SVG string from your settings: width and height up to 4000 pixels, a label, two colours, a font size between 8 and 200 pixels, and a corner radius silently clamped to half the shorter side. The defaults are a 600 by 400 grey rectangle, background #e5e7eb, the text 600 x 400 in #6b7280 at 32 pixels, and a counter under the preview shows that markup weighs 353 bytes.

Data URI or stylesheet line

Preview and CSS share one address. In Auto mode the page URL-encodes the SVG unless it exceeds 1200 characters, then base64s it instead; both encodings are selectable. The read-only block the copy button hands you is a background-image rule with a background-size: cover line under it. Four presets reshape the fields: landscape 1200 by 630, its portrait mirror, an 800 square, and a 256 avatar with radius 128.

What the downloads actually are

SVG saves the exact string. PNG and JPG rasterise it onto a canvas at the chosen multiplier, so 2x on the defaults paints a 1200 by 800 surface; the label is text inside the SVG and is drawn as part of that raster, or hidden entirely by the show-label checkbox. JPEG gets the background colour flooded in first because the format has no transparency, which also fills any rounded corners. Files are named from the label slugified plus the size: the default PNG lands as 600-x-400-600x400.png, and an empty label gives placeholder-600x400.png.

A worked example

Press Avatar and the fields jump to 256 with radius 128, a full circle. Set the raster size to 2x and download PNG: the status line confirms PNG saved, 512×512px, with the encoded byte count, transparency intact around the disc.

Where it stops

  • One line of centered text; a long label overflows the rectangle instead of wrapping.
  • Solid fills only, with no gradients, patterns or embedded pictures.
  • Raster text is rendered by the operating system's font stack, so it can shift a little between machines.
  • The 4000-pixel ceiling ends the largest file, and a very long label inflates the data URI inside your CSS.

Questions people ask

Is a data URI better than a real file?

It removes one request but cannot be cached and grows the stylesheet, so a shared placeholder reused across pages usually wins as a file.

Why do my rounded corners look filled in JPG?

JPEG carries no alpha channel, so the tool paints them with your background colour before drawing.

Can I sanity-check the label colours?

Rate the pair in the color contrast checker, and hand mockups that must ship to the image resizer.