Placeholder Image Generator
Make a placeholder image at any size from 16 to 4,096 px. Set the background, text color and label, then download SVG or PNG or copy a data: URL.
1,200 × 630 px. The preview is scaled down to fit when the image is larger than this box. SVG is 335 B.
16 to 4,096 px
16 to 4,096 px
Empty: uses #ffffff, the better contrast on this background.
Empty: shows the size, 1200×630.
<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: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
01 · Definition
What is a placeholder image?
A placeholder image is a stand-in with the same dimensions as the picture that will eventually go in a layout. It is usually a flat color with its size or a short label written on it, so a design or prototype can be built and reviewed before the real photography or artwork exists.
02 · Overview
How the Placeholder Image Generator works
This placeholder image generator is for mockups, design systems and demo content. Set the width and height (16 to 4,096 px each), a background color, a text color and a label of up to 60 characters. The image is a flat color with centered text. Download it as SVG or as a PNG at the exact pixel size, or copy the SVG markup or a data: URL to paste into an <img> tag. The image is built in your browser, so nothing has to be hosted.
03 · Guide
Placeholder image size presets
Six presets fill in a width and height; any size from 16 to 4,096 px can be typed instead. The label is drawn at 12% of the shorter side, with a minimum of 10px, so it stays readable on small images.
The label sizes were computed by running the tool's SVG builder for each preset. With the default label, which is the image's own dimensions, the SVG file is 331 to 335 bytes for every preset, because it is only a rectangle and one line of text.
| Preset | Size | Aspect ratio | Label size |
|---|---|---|---|
| OG image | 1200 × 630 | 40:21 (about 1.9:1) | 76px |
| Square | 600 × 600 | 1:1 | 72px |
| Avatar | 128 × 128 | 1:1 | 15px |
| Card 4:3 | 800 × 600 | 4:3 | 72px |
| Banner 21:9 | 1680 × 720 | 21:9 | 86px |
| Thumbnail | 320 × 180 | 16:9 | 22px |
04 · Use cases
When to use the Placeholder Image Generator
- 01
Fill a hero or card grid with correctly sized placeholders during design
- 02
Get a 1200×630 placeholder for an Open Graph image slot
- 03
Build a design system showcase with consistent placeholder shapes
- 04
Label a placeholder 'avatar', 'cover' or 'thumb' so reviewers know what goes there
05 · Examples
Placeholder Image Generator examples
1200×630, background #1d2671, no label (the default)
ex 01placeholder-1200x630.svg, 335 bytes, white text reading 1200×630
With no label the image shows its own size. The text color is picked for contrast.
128×128, label 'avatar'
ex 02placeholder-128x128.png at exactly 128 × 128 px
A square for an avatar slot, saved as a PNG.
1920×1080, label 'hero'
ex 03placeholder-1920x1080.svg or .png at exactly 1920 × 1080 px
16:9 at full size, for checking a hero crop before the real photography exists.
400×400, data: URL output
ex 04data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http…
You can paste it straight into an img src, so there is no file to manage.
Width 99999
ex 05"99,999 is above the maximum. Using 4,096 px."
Sizes outside 16 to 4,096 px are clamped, and the field says so.
06 · FAQ
Placeholder: frequently asked questions
Why generate a placeholder file instead of linking to a placeholder service?
What does the image contain?
What format should I use?
What sizes are supported?
Should placeholder images have alt text?
How do I stop placeholders causing layout shift?
Can I use a data: URL in production?
07 · Reference
Specs and further reading
These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.
- <img>: The Image Embed element
MDN Web Docs. Reference for width, height, and the attributes that prevent layout shift.
- data: URLs
MDN Web Docs. Syntax of the data: URL the tool copies.
- Images Tutorial
W3C WAI. How to describe decorative and informative placeholder images correctly.
08 · More
Tools that pair with Placeholder
Avatar Generator
Make an initials, identicon or geometric avatar from a name or email. The same input always gives the same avatar. Download SVG or a 512 px PNG.
QR Code Generator
Make a QR code for a URL, text, a WiFi network or a vCard contact. Download as SVG or PNG up to 2,048 px. Codes are static, with no redirect or expiry.
Lorem Ipsum Generator
Generate lorem ipsum placeholder text by paragraphs, sentences or words. Classic Latin or corporate, hipster and bacon variants. Copy or download as .txt.
Favicon Generator
Make a favicon from text, an emoji or an image. Get a zip with favicon.ico, six PNG sizes from 16 to 512 px, site.webmanifest and the HTML link tags.