Free Placeholder Image Generator

Generate placeholder images with custom dimensions, background colour, text and download as PNG.

How It Works

  1. Set dimensions: Enter the width and height in pixels for your placeholder image.
  2. Customize appearance: Choose background color, text color, and the label text to display (or leave blank for the dimension label).
  3. Use or download: Copy the image URL for use in HTML/CSS, or download the PNG directly for mockups and designs.

Why Use Placeholder Image Generator?

During web development and design mockups, you often need images before the real content is ready. Placeholder images fill space in layouts to show proportions, test responsive behavior, and communicate design intent to clients. Instead of searching for stock photos or creating blank images manually, this tool generates properly-sized placeholders instantly with your chosen dimensions and colors.

Features

Frequently Asked Questions

Can I use this in HTML src attributes?

Yes. The generated image is available as a data URI that you can paste directly into an <img src=""> attribute in your HTML. No hosting or external URL needed.

What sizes are common for placeholder images?

Common sizes include: hero images (1200×630), blog thumbnails (400×300), avatars (100×100), Open Graph images (1200×628), and banner ads (728×90). Enter any custom size for your specific layout needs.

How do I use placeholder images in CSS?

Copy the data URI and use it as a CSS background: background-image: url("data:image/png;base64,..."). This works in all modern browsers and requires no external files.

A short history of placeholder image services

Placeholder image services emerged in 2010 when web designers needed a quick way to fill mockups before final assets arrived. placehold.it, launched by Dave Reilly in 2010, was the first widely-used service: paste a URL like placehold.it/300x200 in any <img> tag and get a grey rectangle. placekitten.com followed the same year, replacing rectangles with random kittens, and dummyimage.com (Russell Heimlich, 2010) added colour customisation. Whimsical variants proliferated: fillmurray.com (Bill Murray photos, 2013), placebeard.it (beards, 2014), placecage.com (Nicolas Cage). The serious successors arrived later: Lorem Pixel (defunct around 2017) and Lorem Picsum by David Marby (2018), which serves random photos from Unsplash at any size. Around 2014, Facebook popularised the «skeleton screen» pattern: showing grey shapes where content will load. By 2019, Wolt released BlurHash, a 20-byte string that decodes to a low-resolution blurred placeholder of the real image. Today, ThumbHash (Evan Wallace, 2023) and the native aspect-ratio CSS property (Chrome 88, January 2021) let you reserve image space without external services at all.

Standard image sizes worth memorising

Placeholders and Core Web Vitals

Google's Core Web Vitals (launched May 2020) measure user experience and feed into search ranking. Two of the three metrics depend directly on how you handle images. CLS (Cumulative Layout Shift) penalises content that jumps as the page loads. The most common cause: an <img> without explicit width and height attributes, which gives the browser zero space to reserve until the image finishes downloading. A score above 0.1 fails the metric. The fix is trivial: always set width and height, even on responsive images, so the browser can compute the aspect ratio. LCP (Largest Contentful Paint) measures when the biggest visible element loads. For most pages that element is the hero image. Anything over 2.5 seconds fails. Strategies: serve modern formats (WebP, AVIF), use loading="lazy" on below-the-fold images (Chrome 76, August 2019), and use fetchpriority="high" on the hero. Placeholders bridge the gap visually: skeleton screens for layout, BlurHash or ThumbHash for an instant preview of the actual image colour palette.

Image format decision guide

Where placeholder images actually get used

Mistakes that hurt page performance

More frequently asked questions

Why is the dimension label so useful on a placeholder?

When you have a dozen placeholders in a layout at different sizes, the label tells you immediately which slot is which. «400×300» on a grey rectangle is more informative than guessing whether a card is 4:3 or 16:9. Designers and developers reviewing a mockup can spot mis-sized elements from across the room.

What's the difference between BlurHash, ThumbHash, and LQIP?

All three encode a tiny preview of an image that decodes to a blurred placeholder. LQIP («low-quality image placeholder») is just a small JPEG (~100 bytes to 2 KB). BlurHash (Wolt, 2019) encodes any image into a 20-30 character ASCII string that you store in your database; decode time is microseconds. ThumbHash (Evan Wallace, 2023) is similar but 30-50% smaller for the same quality, and renders sharper edges. Modern frameworks (Next.js, Astro, Hugo) all support BlurHash out of the box.

Should I use SVG or PNG for placeholder thumbnails?

SVG if the placeholder is a simple shape (rectangle, icon, geometric pattern). A 50-byte inline SVG beats a 2 KB PNG every time. PNG if you need pixel-accurate text rendering or specific font fallbacks: SVG text rendering varies between browsers and platforms. For dynamic placeholders generated client-side, this tool produces PNGs because canvas text rendering is predictable across browsers.

Does the generated PNG include EXIF or hidden metadata?

No. PNGs generated by the HTML canvas toBlob() or toDataURL() APIs contain only the IHDR, IDAT, and IEND chunks plus a minimal tEXt chunk in some browsers. There's no GPS, no camera info, no editing history, no user identifier. Compare with phone-camera JPEGs that leak GPS coordinates and device serial numbers.

Is anything sent to a server when I generate an image here?

No. The image is drawn locally via the HTML5 Canvas 2D API in your browser. Open the Network tab in DevTools while generating: zero outbound requests for the image. Safe for confidential mockups, NDAs, client work, and unreleased product designs.

Related Tools

Image Converter Image Resizer Image Compressor Favicon Generator