Placeholder image generator
Make a plain image of the exact size you need for a mock-up or a layout test.
About Placeholder Image Generator
While a page is being built the real pictures are rarely ready, and an empty gap hides layout problems. This tool draws a flat rectangle of any size you type, with a background colour, a text colour and a label, which shows the size by default. Save it as PNG, JPEG, WebP or SVG, or copy it as a data URI and paste it into your code. Everything is drawn in your browser.
- Filling a layout with correctly sized boxes before the photos exist.
- Testing responsive images at awkward sizes.
- Making a dummy file of a certain pixel size for an upload form.
- Getting an inline image for a code sample without hosting a file.
How to use Placeholder Image Generator
Step 1
Enter width and height in pixels and choose the colours.
Step 2
Edit the label or leave it to show the size.
Step 3
Pick a format, then download the file or copy the data URI.
Good to know
- The size limit is 5000 pixels on each side. Bigger canvases fail on many phones.
- SVG output stays tiny at any size. PNG and JPEG file sizes grow with the pixel count.
- The label is scaled to fit. Very long text becomes small.
Common questions
Can I get the exact pixel size I typed?
Yes. PNG, JPEG and WebP files have exactly that width and height. The SVG declares it in its width and height attributes.
Is there a watermark?
No. The only text is the label you set.
Why is JPEG not transparent?
JPEG has no transparency, so the background colour fills the whole picture.