Placeholder Image Generator

Generate sized placeholder images — pick width, height, background, foreground, and label. Copy as SVG/PNG or a static URL.

1200×630
SVG markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 630" width="1200" height="630">
  <rect width="1200" height="630" fill="#1d2671"/>
  <text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif" font-weight="600" font-size="76" fill="#ffffff">1200×630</text>
</svg>
data: URL
data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%20630%22%20width%3D%221200%22%20height%3D%22630%22%3E%0A%20%20%3Crect%20width%3D%221200%22%20height%3D%22630%22%20fill%3D%22%231d2671%22%2F%3E%0A%20%20%3Ctext%20x%3D%2250%25%22%20y%3D%2250%25%22%20dominant-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C%20-apple-system%2C%20sans-serif%22%20font-weight%3D%22600%22%20font-size%3D%2276%22%20fill%3D%22%23ffffff%22%3E1200%C3%97630%3C%2Ftext%3E%0A%3C%2Fsvg%3E
Width
Height
Background
Foreground (empty = auto)
Label (defaults to "1200×630")

01 — Overview

How the Placeholder Image Generator works

A tiny placeholder image generator for mockups, design systems, and demo content. Pick exact dimensions, customize colors and label text, and grab the result as a copy-pasteable SVG, a downloadable PNG, or a copyable data: URL you can drop into any <img> tag.

02 — Use cases

When to use the Placeholder Image Generator

  1. 01

    Fill a hero or grid with sized placeholder images during design

  2. 02

    Get a quick 1200×630 placeholder for OG image slots

  3. 03

    Build a design system showcase with consistent placeholder shapes

  4. 04

    Generate a labelled placeholder to call out 'avatar', 'cover', 'thumb'

03 — Examples

Placeholder Image Generator examples

1200×630, dark bg, label 'OG image'

ex 01

Downloadable SVG / PNG at exact dimensions

Common OG placeholder for blog post mockups.

120×120, accent bg, label '120²'

ex 02

Square thumbnail placeholder

Use in a card grid before real assets exist.

1920×1080, dark background, label "hero"

ex 03

Downloadable SVG or PNG at exactly 1920×1080

16:9 at full size, for checking a hero crop before the real photography exists.

400×400, data: URL output

ex 04

data:image/svg+xml,%3Csvg xmlns=…

Paste straight into an img src with no file to manage.

04 — FAQ

Placeholder — frequently asked questions

Why generate placeholders locally vs using a CDN?

CDNs like placeholder.com used to break or get blocked. Local generation is offline, free, and produces SVG (sharp at any size) or PNG with no network dependency.

What format should I use?

SVG for sharp scaling and tiny file size — the default. PNG when you need a raster file for a system that doesn't accept SVG (some PDF tools, slide decks). data: URLs for inline embedding without any file at all.

Why generate placeholders locally instead of using a CDN service?

Three reasons: the images work offline, they don't leak your mockup's structure to a third party through request logs, and they don't break when the service rate-limits you or disappears. Several popular placeholder services have gone down or started throttling over the years, taking every prototype that depended on them with them.

Should placeholder images have alt text?

If the image is standing in for something decorative, use alt="" so assistive tech skips it. If it represents real content that will exist later — a product photo, an article thumbnail — write the alt text you'd eventually want. Mockups are where alt text habits form or don't.

How do I stop placeholders causing layout shift?

Set width and height attributes on the img element matching the real aspect ratio. Browsers use them to reserve space before the image loads, which keeps Cumulative Layout Shift down. It works for placeholders and real images alike — the attributes aren't overridden by CSS sizing.

Can I use a data: URL in production?

For small SVGs, yes — it saves a request and they compress well. Avoid it for base64 PNGs: base64 adds about a third to the file size and the bytes sit in your HTML, so they can't be cached separately and they delay first paint. Anything above a few kilobytes belongs in its own file.

05 — Reference

Specs and further reading

The primary sources this tool follows. Where behaviour is defined by a specification, we link the specification rather than a summary of it.

07 — More

Tools that pair with Placeholder

Last updated .