Placeholder Generator

Generates a placeholder image at any dimensions, with the size labelled on it, as a PNG you can download. For wireframes, layout testing and mockups where you need the shape of an image without the image.

Live demo · real result from this tool

Press Generate to create a result.

Processed on your device — nothing is uploaded.

How to use Placeholder Generator

  1. Set the width and height you need.
  2. Generate and download the PNG.
  3. Drop it into your mockup with explicit width and height attributes.
  4. The dimensions are drawn on the image, which makes scaling problems visible at a glance.
  5. Generated locally as a PNG — no external service and no network request.
  6. Use the aspect ratios you expect to receive, not only the ones you designed for.

Why generate rather than use a service

The familiar placeholder services work by URL, which means every mockup carries an external dependency: the images vanish when the service goes down, when it changes its URL format, or when the file is opened offline or behind a firewall. Several popular ones have closed over the years and broken years of archived mockups. A generated PNG sits in your project and keeps working. It also keeps client work private, since no request is made carrying your dimensions or your page’s referrer.

Placeholders reveal layout bugs that real images hide

The label showing the dimensions is the useful part: when a 400×300 placeholder renders at 300×300, you can see the distortion immediately, where a photograph would just look slightly off. Test with the aspect ratios you will actually receive rather than the ones you designed for — users upload portrait phone photos into slots designed for landscape hero images, and the layout that only works at 16:9 fails on the first real upload.

What to check while the placeholders are in

Set explicit width and height attributes so the browser reserves space before the image loads — without them the page reflows as images arrive, which is what Cumulative Layout Shift measures and penalises. Check the alt text is written, not left empty or filled with the filename. And decide the object-fit behaviour now: cover crops, contain letterboxes, and the wrong choice is much more obvious in a placeholder than in a photograph.

Frequently asked questions

Can I get the placeholder as an SVG?
Yes. Every placeholder comes as both a PNG and an SVG. The SVG is a small text file you can paste straight into HTML, and it stays sharp at any zoom.
Can I change the colours and the label?
Yes. Set the background and text colours, and type a label such as Hero image; leave the label empty and it shows the size, such as 800 × 450. Width and height can each go up to 8,000 pixels.
Is my data secure?
Absolutely. This tool runs 100% locally in your browser. Your files are never uploaded to any server.
Why not just use a placeholder URL service?
Because it is an external dependency in your mockup. Those services change URL formats and close down, breaking archived work, and the images do not load offline or behind a strict firewall. A downloaded PNG keeps working.
What size placeholder should I use?
The size the real image will be, at the density you will serve it — so double the CSS dimensions if you are targeting high-DPI screens. Testing at the wrong size hides both scaling artefacts and layout problems.
Do placeholder images affect page speed testing?
Yes, and usefully: a generated PNG of the right dimensions reserves the same layout space as the real image, so layout-shift measurements are meaningful. Its file size will differ from a real photograph, so treat loading-time figures as provisional until the real assets are in.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close