Skip to content

Placeholder Image

Generates a solid or gradient placeholder at any size with the dimensions drawn on it.

A grey box at exactly the size you need, with the dimensions drawn on it — for a layout that is waiting on real photography. It comes out as an SVG data URI you can paste straight into CSS, which is smaller than any PNG and costs no request.

🔒 Runs entirely in your browserplaceholderdummymockupgenerator
Fill
1200 by 630 placeholder

SVG data URI

580 byte

Percent-encoded rather than base64: about 25% smaller, and you can still read it. Paste straight into background-image: url("…")

How to use it

  1. Set the size

    The exact pixel dimensions of the slot. With the label on, they are drawn onto the image, which is what makes a wrong-sized box obvious in a layout.

  2. Choose solid, gradient or noise

    Solid and gradient stay SVG. Noise has to be a PNG, because a per-pixel random field as SVG would be megabytes of rectangles.

  3. Copy the data URI

    Percent-encoded rather than Base64: about 25% smaller, and still readable in the stylesheet.

Common questions

Why is the SVG version not available for noise?

Because SVG has no per-pixel random primitive that renders identically across engines. Expressing it literally means one rectangle per pixel, which for a 400×300 box is 120,000 elements.

Does the noise change every time?

No — it is seeded, so the same settings give the same image. A placeholder that changed on every render would make a visual regression suite useless.

Can I use these in production?

The data URI, yes — it is a few hundred bytes and it never 404s, which is more than can be said for a third-party placeholder service. Just remember to remove them, because a placeholder that shipped is invisible in code review.

Feed it from

Next

These accept what this tool produces, so the result can go straight in.