How to use the Placeholder Image Generator
- 1
Set the size
Type width and height, or click a preset such as 1200×630 Open Graph or 300×250 ad box.
- 2
Style it
Choose background and text colours and, optionally, your own label instead of the dimensions.
- 3
Pick a format
PNG, JPG, WebP or SVG.
- 4
Download or copy
Download a file named like placeholder-1200x630.png, or copy a data URI to paste into code.
Features
Any size
From 1 × 1 up to 5000 × 5000 pixels; values outside are clamped.
Auto-sized label
Text shrinks to fit the width and is capped at 30% of the height, with an 8 px minimum.
Custom colours
Separate pickers for background and text.
Presets
Social images, YouTube, Instagram, stories, Full HD, X header, IAB ad sizes, avatar and 4:3.
Real SVG
A clean SVG with a rect and centred text, editable in any vector tool.
Data URI
Copy the image as a data: URL — Base64 SVG, or PNG/JPG/WebP from a canvas.
Who uses it — and for what
Designers
Block out image slots in wireframes with exact sizes.
Front-end developers
Test responsive layouts and aspect-ratio CSS before real images arrive.
Ad ops and marketers
Mock up banner placements in standard ad sizes.
Store builders
Fill product grids in a demo shop with labelled placeholders.
Why use placeholder images
While building a layout, wireframe or prototype you often don’t have the final photos yet. Placeholder images keep the exact dimensions in the design so spacing, aspect ratios and responsive behaviour can be tested — and the size printed on the image makes it obvious which slot needs which asset. Unlike online placeholder services, these images are generated in your browser and downloaded, so your project doesn’t depend on a third-party server staying online.
Formats
- SVG — tiny file that stays sharp at any size; perfect for wireframes.
- PNG — exact pixels, good for UI mockups.
- JPG/WebP — realistic file sizes when testing page weight.
- Data URI — paste directly into HTML or CSS (
src="data:image/…") with no file at all.
Presets cover common sizes: social sharing images, YouTube thumbnails, banners, avatars and HD screens.
Choosing a format for placeholders
| Format | Typical size | Choose it for |
|---|---|---|
| SVG | Well under 1 KB, whatever the dimensions | Wireframes, prototypes and data URIs — sharp at every zoom |
| PNG | Small for flat colours | Pixel-exact mockups and upload forms that reject SVG |
| JPG | Small; quality 0.9 on download | Testing CMS uploads or email builders that expect photos |
| WebP | Smallest raster option in most cases | Testing modern image pipelines |
Two details are worth knowing. Raster data URIs are encoded at quality 0.85, slightly lower than the 0.9 used for downloaded JPG and WebP files. And SVG text uses the viewer’s system font, so the label may look slightly different on Windows, macOS and Android, while PNG, JPG and WebP bake in the font of the browser that generated them.
Common sizes and when placeholders help
The presets match sizes you will meet constantly: 1200 × 630 for link previews on social networks, 1280 × 720 for YouTube thumbnails, 1080 × 1080 and 1080 × 1920 for Instagram posts and stories, 1500 × 500 for an X header, and the classic IAB ad units 728 × 90, 300 × 250 and 160 × 600. Platform requirements change from time to time, so check the current guidance before producing final artwork.
Placeholders are most useful when they carry information: label them with the slot name (“Hero – desktop”) or the size, and use a distinct background colour per section so it is obvious in a review which asset is missing. Remember to replace them before launch — search your codebase for “placeholder-” to find stragglers. When the real images arrive, the Image Resizer and Image Compressor get them to the same dimensions and a sensible weight, and the OG Image Generator can design a real social preview at 1200 × 630.
Worked examples
How big the label gets
Font size = the smaller of 30% of the height and 0.9 × width ÷ (characters × 0.6), never below 8 px:
| Size | Label | Font size |
|---|---|---|
| 1200 × 630 | 1200 × 630 | 180 px (height limit) |
| 728 × 90 | 728 × 90 | 27 px (height limit) |
| 160 × 600 | 160 × 600 | 26.7 px (width limit) |
| 300 × 250 | Hero banner for the summer sale | 14.5 px (width limit) |
Long custom labels on narrow images therefore get small; keep them short, such as “Hero” or “Product 1”.
Using the output in code
A downloaded file goes in your project like any image:
<img src="/img/placeholder-1200x630.png" width="1200" height="630" alt="">A copied data URI needs no file at all:
<img src="data:image/svg+xml;base64,PHN2Zy…" alt="">Setting width and height (or CSS aspect-ratio) reserves space before the image loads, which avoids layout shift — something worth testing with placeholders before the real photos arrive.
Pro tips
- Keep text and background colours contrasting enough to read in screenshots and design reviews.
- Leave the text box empty to print the dimensions — the most useful label while building layouts.
- Use SVG data URIs in CSS backgrounds during prototyping; they add almost nothing to the stylesheet size.
Glossary
- Data URI
- An image or file embedded directly in a URL string starting with data:.
- Aspect ratio
- Width divided by height, for example 16:9 for 1280 × 720.
- Layout shift
- Content jumping on screen when images load without reserved space.
Frequently asked questions
What is the maximum size?
Up to 5000 × 5000 pixels.
Can I use these images commercially?
Yes — you create them, there are no restrictions.
How do I embed without a file?
Copy the data URI and use it as an image src or CSS background.
Is the preview the same as the download?
The preview is always the SVG version. PNG, JPG and WebP downloads are drawn separately on a canvas with the same colours, text and sizing rules.
Can I add an emoji or Hindi text as the label?
Yes, any text works; how it looks depends on the fonts available on the device that renders it.
Why does a 5000 × 5000 PNG take a moment?
The browser draws 25 million pixels and compresses them; it is still done locally and usually finishes in a few seconds.
Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Developer & Web (77 tools)