How to use the Placeholder Image Generator
- Enter a width and height in pixels, or pick a size preset.
- Choose a background colour. The text colour is picked for good contrast unless you set it yourself.
- Change the label, or clear it for a plain colour block.
- Download PNG for mockups and slides, or SVG for a tiny file that scales.
Why placeholders matter
A layout built with real sizes shows how a page behaves before final images exist. Giving every image its width and height attributes also lets the browser reserve the space, which stops the page jumping as pictures load (web.dev, see Sources).
Aspect ratio is width divided by height. A 600 x 400 image has a ratio of 1.5, or 3:2, and a 1920 x 1080 image has 16:9. Matching the ratio of the final picture keeps the layout from shifting when you swap it in.
PNG or SVG
An SVG placeholder is only a few hundred bytes and stays sharp at any size, so it is ideal for code and wireframes. A PNG is a fixed grid of pixels, which suits slide decks and design tools that cannot open SVG.
The size limit is 4000 pixels per side. That is 16 million pixels, which is already large for a flat colour and keeps the browser from running out of memory when it draws the PNG.
Frequently asked questions
Can I leave the text out?
Yes. Clear the label to get a plain colour block.
Does this call another website?
No. The images are drawn in your browser, so nothing is requested from or sent to an image service.
How is the text colour chosen?
Black or white, whichever has the higher contrast against the background, unless you pick your own colour.
Why is there a size limit?
Very large canvases can crash a browser tab, so each side is limited to 4000 pixels.
Sources
- web.dev: Cumulative Layout Shift (as of November 2026)
Last reviewed