How to use the Placeholder Image Generator tool
- Enter the width and height you need in pixels.
- Choose the colour.
- Type the label to show on the image.
- Select PNG, JPG or WebP.
- Download the placeholder.
To generate a placeholder image, open the Placeholder Image Generator on Archive.London, enter the width and height in pixels, choose a colour, type a label, select PNG, JPG or WebP, and download the file. The image is created in your browser, so it works offline and nothing is sent to a server.
Getting the size and format right
A placeholder is only useful if it has the dimensions of the picture that will replace it. Take the width and height from the design, and if the layout is meant for high-density screens, generate at twice the displayed size as the final image will be. Matching the proportions matters more than matching exact pixels, because a placeholder of the wrong shape hides layout problems that appear later.
For format, PNG is the natural choice. A flat colour with a text label compresses losslessly to a very small file and the lettering stays crisp. JPG is lossy and tends to leave faint smudges around text edges, but it is the right pick when you need to test a pipeline that expects JPG. WebP suits the same kind of test for sites that serve WebP. Put the dimensions in the label so the file identifies itself.
A local file instead of a placeholder service
Many placeholder images are loaded from a third-party web address that returns a grey box of the requested size. That is convenient, but it makes your prototype depend on someone else's server. If the service is slow, blocked by a firewall or closed down, the layout breaks, and every page view sends a request to an outside party.
This generator draws the image on an HTML canvas in your browser and gives you a file to keep in the project. It works offline once the page has loaded, involves no account and transmits nothing.
On a live site, give images explicit width and height attributes so that the browser reserves the space before the file arrives. That prevents the page jumping as pictures load, the effect measured as layout shift.
Standing in for pictures that are not scanned yet
Placeholders are not only a web developer's convenience. Anyone cataloguing photographs meets the same problem: the record exists before the image does. A box of film can be described, counted and given references long before each frame is scanned, and a catalogue page or spreadsheet needs something in the picture slot meanwhile. A labelled block carrying the reference number is clearer than a blank or a broken-image icon.
The scale of that gap can be large. As the archive facts page records, the Robert Harper Photograph Library holds 52,684 analogue photographs, and that material largely awaits digitisation. The collections already described can be browsed in the photography archive. For your own project, a consistent placeholder ratio also lets you design the catalogue before scanning starts.
Frequently asked questions
What is a placeholder image?
It is a temporary image used to fill a space in a design until the real picture is available. It normally consists of a plain coloured rectangle of the correct size, often labelled with its dimensions or a description. Designers and developers use placeholders in wireframes, mock-ups, templates and tests.
What size should my placeholder be?
The same pixel dimensions, or at least the same proportions, as the final image. Check the design specification or the size of the container on the page. Common examples are 1200 by 630 for social sharing images and 1920 by 1080 for full-width banners. For high-density displays, double the displayed width and height.
Which format should I choose, PNG, JPG or WebP?
PNG suits most placeholders, as flat colour and text stay sharp and the file is tiny. Choose JPG or WebP when you specifically need to test how a system handles that format, for example an upload form that accepts only JPG or an image pipeline that converts to WebP. Visually they will look almost identical.
Can I use placeholder images on a live website?
You can, since the files you generate are your own, but they are meant as stand-ins. Before launch, replace them with real images, and check that none have been left behind. A dummy image on a published page looks unfinished and gives search engines and visitors nothing of value.
Does the generator need an internet connection or an account?
No account is needed. The page needs to load once, after which the generator works offline, because the image is drawn by your own browser. Nothing you enter, including the label text, is sent to a server. Extremely large dimensions may fail on devices with little memory, particularly phones.
