What is a placeholder image?
A placeholder image is a simple coloured rectangle that stands in for a real image while a website or design is being built. It shows the size the real image will be, and usually carries a label saying so, like "800 × 600". Designers use them so a page looks finished before the real photos are ready.
The point is to see the layout, not the picture. A page with grey boxes tells you nothing about how it will feel; a page with coloured placeholders at the right sizes shows the spacing, the balance and the rhythm at once. When the real images arrive, they drop into the same spaces.
This tool makes placeholders at any size, in any colour, with any label, as a PNG or an SVG, and it shows a live preview before you download. A image resizer changes a real picture to a size you choose, and a QR code generator makes a different kind of generated image.
How this placeholder image generator works
You set the width and the height in pixels, a background colour as a hex code, and the label text shown in the middle. The default is 800 × 600, a blue background, and the label "800 × 600". Click Generate Placeholder and the tool draws the image on a canvas and shows it below, with a download button.
The label is drawn in white, centred, in bold text sized to fit the image: about an eighth of the shorter side, up to 72 pixels. If you leave the label empty, the tool uses the size as the label, so the image still tells you its dimensions. If the colour is not a valid six-digit hex code, the tool falls back to the default blue.
PNG is the default format, and it gives you a real image file you can use anywhere. SVG is the vector option: it is a small text file that describes the same rectangle, and it scales cleanly to any size, because it is a shape, not pixels. The results show the size, the aspect ratio, the total pixel count and the format.
A worked example: 800 × 600 at the defaults
The default placeholder is 800 pixels wide and 600 tall. The aspect ratio is 4:3, the classic photo shape, and the total is 480,000 pixels. The label reads "800 × 600", drawn in white on a blue background. That is the whole image: a blue rectangle with white text, and it is exactly what a designer needs to stand in for a real 800 × 600 photo.
Change the width to 1920 and the height to 1080, and the ratio becomes 16:9, the widescreen shape, with 2,073,600 pixels. The label is still drawn in the middle, sized to fit. Change the colour to #DC2626 and the rectangle turns red. Change the label to "Hero image" and the text says so instead of the dimensions.
The maths is simple and exact: area is width times height, and the ratio is the two numbers divided by their greatest common divisor. 800 and 600 share 200, so 800 ÷ 200 is 4 and 600 ÷ 200 is 3, giving 4:3. 1920 and 1080 share 120, giving 16:9. The tool shows both numbers so you can check the shape at a glance.
Common placeholder sizes
The most useful sizes are the ones real images come in. A hero banner is often 1920 × 1080 or 1600 × 900. A blog feature image is often 1200 × 630, the size social media previews use. A product photo is often square, 800 × 800 or 1000 × 1000. A profile picture is often 400 × 400.
A thumbnail is often 300 × 200 or 320 × 180. A story image is often 1080 × 1920, tall rather than wide. A favicon is tiny, 32 × 32 or 64 × 64. Each of these shapes has a job, and using the right shape as a placeholder means the layout is tested against the real thing, not a guess.
When you are not sure which size to use, start with the shape, not the pixels. A wide banner needs a 16:9 rectangle, a square avatar needs 1:1, and a portrait needs 3:4 or 9:16. The exact pixel count matters less than the shape, because the browser scales the image to fit the space anyway.
The default placeholder is 800 × 600, which is 4:3, the classic photo shape. It is a good default because it is large enough to see clearly and small enough to load instantly, and its shape matches the most common photo size. Change it when the space it stands in for is a different shape, not just a different size.
PNG vs SVG placeholders
PNG is a real image: pixels, fixed size, and the same file works everywhere. Use PNG when the placeholder will be uploaded to a site, sent to a client, or used in a design tool that expects an image file. The file is small for simple rectangles, because a solid colour compresses very well.
SVG is a description: a few lines of text that say "a rectangle this big, this colour, with this text". It scales to any size without losing quality, because it is a shape, not pixels, and it is tiny as a file, often under a kilobyte. Use SVG when the placeholder lives in code, in a mockup, or in a document that will be printed at different sizes.
The visible result is the same either way: a coloured rectangle with centred text. The difference is in the file: PNG is an image, SVG is a text file that draws an image. If you are not sure, choose PNG: it works in more places, and it is the format most people expect when they ask for an image.
Choosing colours and labels
The background colour is a hex code, six digits after a hash, like #3B82F6 for blue or #DC2626 for red. A colour picker helps you find the exact hex code for any colour you like. Any colour works, but the label is always white, so pick a colour dark enough for white text to read clearly. Very pale colours, like #FDE68A, make the white text hard to see, and the placeholder loses its point.
A useful habit is to colour-code by purpose: blue for hero images, green for product photos, red for banners, grey for avatars. When a page has a dozen placeholders, the colours tell you at a glance which space is which, and the layout is easier to discuss with a client.
The label should say what the image is for, not just its size. "800 × 600" is useful, but "Hero image" or "Product photo 3" is more useful, because it tells the next person what belongs there. If the label is long, keep the image large enough to fit it: the text size is tied to the shorter side, so a very wide, short image will have small text.
SVG placeholders have a hidden advantage: they are text, so they can be stored in a code repository, pasted into a document, or generated by a script. A designer who needs a hundred placeholders at different sizes can generate them all from a few lines of code, while a hundred PNG files would need a hundred downloads. For mockups and prototypes, SVG is the faster choice.
Common placeholder mistakes
The most common mistake is using a placeholder in production. Placeholders are for building and testing, not for the live site: a visitor who sees a blue rectangle with "800 × 600" on it knows the site is unfinished. Replace every placeholder with a real image before the site goes live, and search the site for the word "placeholder" to catch any that were missed.
Second: using the wrong shape. A 4:3 placeholder in a 16:9 space will be stretched or cropped when the real image arrives, and the layout will change. Third: forgetting the label. A plain coloured rectangle does not say what belongs there, and the next person to work on the page has to guess.
Fourth: using a tiny placeholder and scaling it up. A 100 × 100 PNG stretched to 800 × 600 looks blurry, which is fine for a draft but misleading in a review. Fifth: picking a pale colour that hides the white label. Dark or saturated colours work best, because the label has to be readable at a glance.
How to use this placeholder image generator
Set the width and height in pixels: 800 × 600 is the default, and the tool accepts anything from 1 to 4000 pixels on each side. Pick a background colour as a hex code, type the label text, and choose PNG or SVG. The results show the size, the aspect ratio, the total pixel count and the format.
Click Generate Placeholder. The preview appears below, showing exactly what the image looks like, and the download button saves it with a name that includes its size, like placeholder-800x600.png. Change any setting and click again to make a new one: each click redraws the image from the current settings.
Everything runs in your browser. No sign-up, no account, no data sent anywhere. It works offline once the page has loaded. And remember the point: a placeholder is a stand-in, not a finished image. Use it to build and test the layout, then replace it with a real picture before anyone sees the page.