Skip to content

Placeholder Image Generator

Type a width and height, pick two colours, and download a PNG file of exactly that size with the dimensions or your own label printed in the middle.

Runs in your browserFree, no sign-upLast reviewed

Settings

Leave blank to show the width × height instead.

Results update automatically as you type.

Fill in the settings to see your result here.

Your result appears here instantly — nothing is uploaded.

Quick answers

What is a placeholder image?
A placeholder image is a stand-in graphic of the correct pixel size, used in a layout before the final photo or illustration exists. It usually shows its own dimensions so designers and developers can see which slot it fills and what size the real asset needs to be.
What size should a placeholder image be?
The same pixel size as the final image. Common choices are 1200 x 630 for link preview images, 1920 x 1080 for full-width heroes, 1080 x 1080 for square social posts and 300 x 250 for a medium rectangle advert.
How do I make a transparent placeholder PNG?
Tick Transparent background. The fill is skipped and only the label is drawn in your text colour, on a fully transparent canvas. The Details panel shows Background as Transparent, and the downloaded PNG keeps its alpha channel.
What is the largest placeholder image I can make?
4000 x 4000 pixels, and the smallest is 16 x 16. Width and height are set separately, so 4000 x 16 is also allowed. Values outside that range give an error asking for a size between 16 and 4000 pixels.
What format does the placeholder download in?
PNG only. The file is named after its size, for example placeholder-1200x630.png. There is no JPG, WebP, GIF or SVG option, so convert the file afterwards if you need to test another format.

How Placeholder Image Generator works

This placeholder image generator draws a flat-colour rectangle at the pixel size you enter, from 16 x 16 up to 4000 x 4000, prints one line of text in its centre and gives you the result as a PNG file. Leave the text box empty and the label is the size itself, so the default image reads 800 × 600 in white on slate grey and downloads as placeholder-800x600.png. You can change both colours, replace the label, or make the background transparent. The Details panel also reports the simplified aspect ratio, such as 4:3 or 16:9. The image is a file you keep and commit with your project, not a link to an image service, so it keeps working offline and in builds.

Placeholder sizes for social media and web pages

Enter these as Width and Height. The ratio column is exactly what the tool shows in its Details panel, and label font size is the text size it uses for that image.

UseWidth x heightAspect ratio shownLabel font sizeFile name
Link preview (Open Graph) image1200 x 63040:2179 pxplaceholder-1200x630.png
Full HD hero or slide1920 x 108016:9135 pxplaceholder-1920x1080.png
Wide page hero1600 x 90016:9113 pxplaceholder-1600x900.png
Video thumbnail1280 x 72016:990 pxplaceholder-1280x720.png
Square social post1080 x 10801:1135 pxplaceholder-1080x1080.png
Portrait social post1080 x 13504:5135 pxplaceholder-1080x1350.png
Story or vertical video cover1080 x 19209:16135 pxplaceholder-1080x1920.png
Profile header banner1500 x 5003:163 pxplaceholder-1500x500.png
Card or article thumbnail400 x 3004:338 pxplaceholder-400x300.png
Small square thumbnail150 x 1501:119 pxplaceholder-150x150.png
Avatar64 x 641:114 pxplaceholder-64x64.png

The ratio is reduced to whole numbers, so 1200 x 630 appears as 40:21, the exact form of the ratio usually quoted as 1.91:1.

Standard advert sizes for ad slot placeholders

Useful for reserving space in a layout so the page does not jump when adverts load.

Ad unitWidth x heightAspect ratio shownLabel font size
Medium rectangle300 x 2506:531 px
Large rectangle336 x 2806:535 px
Leaderboard728 x 90364:4514 px
Billboard970 x 25097:2531 px
Half page300 x 6001:238 px
Wide skyscraper160 x 6004:1520 px
Mobile banner320 x 5032:514 px

On short banners such as 728 x 90 the label sits at the 14 px minimum, so keep custom text brief.

How the label is sized and placed

label font size in px = the larger of 14 and (shorter side / 8), rounded

The text is drawn in your system's default sans-serif font, centred horizontally and vertically. An 800 x 600 image uses 600 / 8 = 75 px text; a 1200 x 630 image uses 79 px. If the label is wider than 90% of the image it is squeezed horizontally to fit instead of wrapping or shrinking, so long text on a narrow image looks condensed. There is one line only, with no line breaks, and no control over font, weight or position.

Worked examples

The tool draws on a browser canvas, so the picture itself depends on your device's fonts. The figures below are fixed by how the tool works.

Default settings

Width 800, Height 600, Background colour #94a3b8, Text colour #ffffff, Text empty

An 800 x 600 PNG reading 800 × 600 in white 75 px text. Details: Size 800 × 600px, Aspect ratio 4:3, Background #94a3b8. File placeholder-800x600.png.

Link preview placeholder with a label

Width 1200, Height 630, Text set to Blog post cover

A 1200 x 630 PNG with Blog post cover centred in 79 px text. Aspect ratio 40:21. File placeholder-1200x630.png.

The file name always comes from the size, never from the label.

Transparent slot marker

Width 400, Height 300, Text colour #000000, Transparent background ticked

A 400 x 300 PNG with 400 × 300 in black 38 px text and nothing else. Details show Background as Transparent.

Pick a text colour that shows against whatever sits behind the image on your page.

Out-of-range size

Width 5000, Height 600

Error: Choose a width and height between 16 and 4000 pixels.

A local file instead of a placeholder URL

Placeholder images are often loaded from a URL that draws the picture on a remote server each time the page is requested. That is quick to type, but the link then lives on in prototypes, style guides, email templates and test fixtures. If the service is slow, blocked by a company network, rate limited or gone, every one of those images breaks at once, and automated visual tests start failing for reasons unrelated to your code.

A downloaded PNG has none of those dependencies. It sits in your repository beside the other assets, loads from your own server or from disk, works with no network connection and looks the same in six months as it does today.

The trade-off is convenience. This placeholder image generator makes one image at a time and you save each file yourself; there is no URL pattern that returns an arbitrary size on demand. For a dozen fixed slots that takes a couple of minutes. For hundreds of generated sizes a script or a self-hosted image endpoint is the better fit.

Using placeholders to find layout bugs

  • Generate one image at the size the design expects and one at a deliberately wrong ratio, such as 600 x 1200 for a landscape slot, to see whether the container crops, stretches or overflows.
  • Leave the text empty in grids so every image states its own dimensions and a wrongly sized one stands out.
  • Give each slot a different background colour to see at a glance which image a responsive rule has picked.
  • Use a transparent placeholder to check that a container's own background and border still look right behind an image with see-through areas.
  • Set the width and height attributes on the image element to the same numbers as the file, so the browser reserves the space before the image loads.

How to use it

  1. 1

    Enter Width (px) and Height (px), each between 16 and 4000.

  2. 2

    Choose a Background colour and a Text colour that contrast with each other.

  3. 3

    Type a label in Text (optional), or leave it empty to print the dimensions.

  4. 4

    Tick Transparent background if only the label should be drawn.

  5. 5

    Check the preview, which redraws as you type, then download the PNG.

Frequently asked questions

Is the image uploaded or created on a server?
No. It is drawn on a canvas inside your browser and handed back as a PNG. Nothing is sent anywhere, and the tool continues to work once the page has loaded even if the connection drops.
Can I put two lines of text on the placeholder?
No. The label is a single line and line breaks are not supported. Long text is squeezed to fit within 90% of the width, so short labels of a few words read best.
Can I make a plain colour image with no text?
Not with an empty text box, because an empty box prints the dimensions. A simple workaround is to set Text colour to exactly the same value as Background colour, which makes the label invisible and leaves a flat block of colour.
Why does the text look different on another computer?
The label uses each device's default interface font, so it is drawn in a different typeface on Windows, macOS, Android and Linux. The image dimensions and colours are identical everywhere; only the letter shapes change. Once downloaded, the PNG looks the same wherever it is opened.
Does the tool make 2x or retina placeholders?
There is no retina switch. Enter the doubled size yourself: for a 400 x 300 slot on a high-density screen, generate 800 x 600. Bear in mind the label will then read 800 × 600, so type the logical size in the text box if that is clearer.
Can I enter a colour name or an RGB value?
Each colour field has a colour picker and a text box holding the hex value, such as #94a3b8. Hex codes are the supported format, so convert a colour name or RGB value to hex first, or choose it in the picker. Partial transparency for the background is not available, only fully transparent or fully opaque.
Can I use these placeholder images in commercial projects?
Yes. The image contains only the colours and text you chose, with no watermark and no attribution requirement. It is intended for mockups, prototypes, documentation and tests, and is normally replaced before a site goes live.
How big is the downloaded file?
Small for its dimensions, because a flat colour with a little text compresses very well as PNG. Size grows with the pixel dimensions and with the amount of text, and a 4000 x 4000 image takes noticeably longer to draw and save than a small one.

Looking for something else? Browse all generators or see every tool.