Placeholder image generator
Make a dummy image of any size and colour, as SVG, PNG or a data URI to paste into code.
600 by 400 pixels. Sizes go up to 4,000.
Preview
Use it in code
- HTML
<img src="data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22600%22 height=%22400%22 viewBox=%220 0 600 400%22%3E%3Crect width=%22100%25%22 height=%22100%25%22 fill=%22%23d4d4d8%22/%3E%3Ctext x=%2250%25%22 y=%2250%25%22 fill=%22%233f3f46%22 font-family=%22system-ui, sans-serif%22 font-size=%2292%22 font-weight=%22600%22 text-anchor=%22middle%22 dominant-baseline=%22central%22%3E600 %C3%97 400%3C/text%3E%3C/svg%3E" width="600" height="400" alt=""> - CSS
background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22600%22 height=%22400%22 viewBox=%220 0 600 400%22%3E%3Crect width=%22100%25%22 height=%22100%25%22 fill=%22%23d4d4d8%22/%3E%3Ctext x=%2250%25%22 y=%2250%25%22 fill=%22%233f3f46%22 font-family=%22system-ui, sans-serif%22 font-size=%2292%22 font-weight=%22600%22 text-anchor=%22middle%22 dominant-baseline=%22central%22%3E600 %C3%97 400%3C/text%3E%3C/svg%3E"); - Data URI
data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22600%22 height=%22400%22 viewBox=%220 0 600 400%22%3E%3Crect width=%22100%25%22 height=%22100%25%22 fill=%22%23d4d4d8%22/%3E%3Ctext x=%2250%25%22 y=%2250%25%22 fill=%22%233f3f46%22 font-family=%22system-ui, sans-serif%22 font-size=%2292%22 font-weight=%22600%22 text-anchor=%22middle%22 dominant-baseline=%22central%22%3E600 %C3%97 400%3C/text%3E%3C/svg%3E - SVG
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="400" viewBox="0 0 600 400"><rect width="100%" height="100%" fill="#d4d4d8"/><text x="50%" y="50%" fill="#3f3f46" font-family="system-ui, sans-serif" font-size="92" font-weight="600" text-anchor="middle" dominant-baseline="central">600 × 400</text></svg>
Missing a feature or found a bug in Placeholder image generator? Tell me on X (@_andrewtran) or by email.
How to use Placeholder image generator
- Enter the width and height in pixels.
- Choose the colours and, if you wish, a label.
- Download the SVG or PNG, or copy the HTML.
Questions and answers
Is anything uploaded?
No. The image is drawn by your browser on this device.
Should I use SVG or PNG?
SVG is tiny and sharp at any size, and fits in a data URI. Use PNG where a tool needs a real bitmap.
What is the data URI for?
It is the whole image as text. Paste it as an image address and the placeholder works with no file and no network request.
Related tools
Favicon generator
Turn an image, letter or emoji into favicon.ico, PNG icons, an Apple touch icon and a web manifest.App icon generator
Make every iOS and Android app icon from one image, letter or emoji, ready for Xcode and Android Studio.Sprite sheet generator
Pack icons or animation frames into one PNG, with the CSS to show each one.Open Graph image maker
Make a 1200 by 630 link preview image with your title, description and colours.