Skip to content

Placeholder Image Generator

Drawn in your browser. Nothing you type is uploaded.

Size

1 to 4,000 px on each side.

Web
Social
Avatars
Ads
Look
Background
Pattern
Text
Shape and wireframe

1200 × 630 px

Format

placeholder-1200x630.png Working out the file size…

HTML

<img src="placeholder-1200x630.png" width="1200" height="630" alt="">

    Download a set

    Every size in a group, in this look and format, in one .zip. The text is fitted to each size.

    Placeholder Image Generator: Dummy Images in Any Size

    What is a placeholder image?

    It’s a stand-in. You’re building a page for a coffee shop, the photographer comes next week, and you still need to see how the menu cards line up. A colored box that says 600 × 400 takes the exact space the photo will take, so the layout is right before the real picture exists.

    Latte art photo, 600 × 400
    A card photo for a café menu
    SM
    An avatar for “Sam Miller”
    A wireframe box for a 728 × 90 ad slot

    People use them for mockups and wireframes, for testing how a design copes with a very wide or very tall image, and for filling a demo page with something better than broken image icons. This generator draws them in your browser in any size up to 4,000 × 4,000, as PNG, JPG, WebP or SVG, with the <img> tag ready to paste.

    How to Make a Placeholder Image

    Step 1 Set the size

    Type the width and height, or click a size like Open Graph 1200×630 or Avatar 128×128. The ⇄ button swaps the two, which turns a landscape banner into a tall one.

    Step 2 Pick a look

    Start from a look (Plain gray, Wireframe, Lime…) or set the background yourself: one color, a gradient, and stripes, a grid or checks if you want it to look obviously “not final”.

    Step 3 Choose the text

    By default the image shows its own size, like 1200 × 630. Switch to My own text for something like “Product photo” or “Hello, Sam”, and add a smaller second line if it helps. Text size fits itself to the image unless you turn Auto size off.

    Step 4 Download or copy

    Pick a format and press Download. Or copy the <img> tag, the SVG code, a data: URL, or the picture itself to paste into a design app or a chat. Download a set gives you every size of a group (say, all four ad sizes) in one .zip.

    💡 Your settings stay in this browser, so next time you open the page it’s where you left it.

    How to Use a Placeholder Image in HTML

    Save the file next to your page, then point an <img> tag at it:

    <img src="placeholder-600x400.png" width="600" height="400"
         alt="Latte art on a flat white">

    That shows a 600 × 400 picture with a short description for screen readers. The file name already has the size in it, so six months from now you’ll still know which box goes where.

    For a whole menu, repeat it per card. Here three cards share one placeholder file:

    <div class="menu">
      <img src="card-600x400.png" width="600" height="400" alt="Flat white">
      <img src="card-600x400.png" width="600" height="400" alt="Iced latte">
      <img src="card-600x400.png" width="600" height="400" alt="Banana bread">
    </div>

    The browser downloads card-600x400.png once and reuses it. Each tag still gets its own alt text, because that’s what changes when the real photos arrive.

    Why Set Width and Height on Images?

    Without them, the browser doesn’t know how tall a picture is until it has downloaded it. So it lays the page out with no space for it, and when the picture arrives everything below gets shoved down. You’ve seen it: you go to tap a link and it jumps away. Google calls this layout shift and counts it in its page experience scores (it’s the CLS number in PageSpeed reports).

    The fix is two numbers. They don’t lock the picture to that size if your CSS makes images fluid:

    <style>
      img { max-width: 100%; height: auto; }
    </style>
    
    <img src="hero-1920x1080.png" width="1920" height="1080" alt="Our café on a sunny morning">

    On a phone this image shrinks to the screen width, and the browser still reserves a 16:9 box for it from the width and height. Placeholders are a nice way to test this: the size printed on the image makes it obvious when something got stretched.

    A File, a data: URL or Inline SVG?

    There are three ways to get a placeholder into a page. They all work; they just suit different jobs.

    A file (most of the time)

    <img src="avatar-128x128.png" width="128" height="128" alt="Sam">

    Your HTML stays short, the browser caches the image, and swapping in the real photo later means replacing one file.

    A data: URL (no extra file)

    <img src="data:image/png;base64,iVBORw0KGgo…" width="128" height="128" alt="Sam">

    The picture lives inside the tag, so a one-file demo or a quick test needs nothing else. The catch: base64 makes it about a third bigger, it’s downloaded again with every page instead of cached on its own, and a long string is hard to read. The tool warns you when one gets over 50 KB.

    Inline SVG (tiny and sharp)

    <svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
      <rect width="128" height="128" fill="#a3e635"/>
      <text x="64" y="76" text-anchor="middle" font-size="32">Sam</text>
    </svg>

    Paste the SVG code straight into your HTML. It’s a few hundred bytes, stays crisp at any zoom, and you can edit the color or the text by hand. The text uses the fonts of whoever views it, so it can look a little different on their device.

    Common Image Sizes

    These are the sizes behind the buttons in the generator. Platforms change their numbers now and then, so for a real campaign check the platform’s own help page. For a mockup, these are close enough.

    Name Size (px) Used for
    Web
    Banner 1200 × 300 A wide strip across the top of a page or a blog header
    Hero 1920 × 1080 The big picture on a landing page, full HD
    Card 600 × 400 Product or blog cards in a grid (3:2)
    Thumbnail 150 × 150 Small square previews in lists
    Social
    Open Graph 1200 × 630 The preview when a link is shared on Facebook, LinkedIn, Slack or WhatsApp
    X post 1600 × 900 An image in a post on X (16:9)
    Instagram square 1080 × 1080 A square Instagram post
    Story 1080 × 1920 Stories and reels, full phone screen (9:16)
    Avatars
    Small avatar 64 × 64 Comment and chat avatars
    Avatar 128 × 128 Profile pictures in a team list
    Big avatar 256 × 256 A profile page header
    Ads
    Medium rectangle 300 × 250 The most common display ad, in a sidebar or between paragraphs
    Leaderboard 728 × 90 A wide ad above the page content
    Skyscraper 160 × 600 A tall ad in a side column
    Mobile banner 320 × 50 A small ad on phones

    Making a share image for real? The Meta Tag Generator writes the og:image tags and shows how the card will look, and HTML to Image turns a bit of HTML and CSS into a proper 1200 × 630 picture.

    Alt Text for Placeholder Images

    A placeholder shouldn’t go live, but sometimes one does. If it might, write the alt text for the picture that’s coming, not for the gray box:

    <!-- Not helpful to anyone -->
    <img src="placeholder-600x400.png" alt="placeholder">
    
    <!-- Still true when the real photo arrives -->
    <img src="placeholder-600x400.png" alt="Our barista pouring a flat white">

    The second one is fine today and still right after the swap, so it’s one less thing to forget. When the image only shows its size, the generator leaves the alt empty until you type one in the Alt text box, because “1200 × 630” tells a screen reader user nothing. With your own text, like “Product photo”, that text is used until you write something better.

    Swapping in the Real Images Later

    What This Tool Can’t Do

    Frequently Asked Questions

    What is a placeholder image?

    It’s a stand-in picture you use while the real one doesn’t exist yet. A gray box that says “600 × 400” shows exactly how much room the photo will take, so you can build and test the layout now and drop the real photo in later.

    Can I hotlink these images, like with an image URL service?

    No. There’s no image server here, so there’s no address like /600x400 that makes a picture on request. Everything is drawn in your browser. Download the file and put it next to your page, or copy the data: URL or the SVG code and paste it straight into your HTML. That also means your mockup keeps working when you’re offline.

    Which format should I pick?

    PNG is the safe choice: sharp edges, clear text, and see-through rounded corners. SVG is the smallest and stays sharp at any size, which makes it the best fit for pasting into HTML. JPG and WebP are made for photos; they work here too, and WebP usually comes out smaller than PNG, but JPG can’t keep the rounded corners clear (they turn white).

    Why is the PNG bigger than the WebP or JPG?

    Browsers make PNG files quickly rather than squeezing every byte, so a flat gray box can come out at 15 KB or more when it could be much smaller. WebP is usually the smallest picture format here, and SVG beats them all (a few hundred bytes), because it only stores the shapes and the text. If a PNG has to be tiny, run it through an image optimizer before you publish it. The file size under the preview shows the real number for your settings.

    Why should I put width and height on the img tag?

    So the page doesn’t jump. With <img src="menu.png" width="600" height="400" alt="Our coffee menu">, the browser saves a 600 × 400 space before the picture arrives. Without them, the text below sits higher and then gets pushed down when the image loads. If your CSS makes images fluid (max-width: 100%; height: auto), the browser still uses the two numbers to keep the right shape.

    What alt text should a placeholder have?

    Ideally, a placeholder never goes live, so the alt text doesn’t matter for long. If one has to ship, describe what will be there, like alt="Photo of our new espresso machine", not “placeholder” or “1200 × 630”. When the image only shows its size, the generator leaves the alt empty until you type one in the alt text box. With your own image text, that text is used until you type something better.

    Can I use emoji or other languages in the text?

    Yes. Type or paste them in the text box, like “☕ Coffee menu” or “Hola, Sam”. They’re drawn with your device’s own fonts, so emoji look like the ones on your phone or computer. In the SVG file the text is drawn by whoever opens it, so it can look a little different on another device.

    What is the biggest image I can make?

    4,000 × 4,000 pixels. That covers a 4K screen and every common social card size. Very large PNGs take a second or two to make, and the file size line updates once they’re ready.

    Is anything uploaded or saved?

    Nothing is uploaded. The pictures are drawn in your browser. Your settings (size, colors, text) are kept in this browser’s local storage so they’re still there next time; press Reset to start over.