Placeholder Image Generator

Make placeholder images at any size and colour, as SVG, PNG or a data URI you can paste straight in.

The Placeholder Image Generator runs entirely in your browser. The SVG is built and rasterised on your device, and nothing is uploaded.

Built and maintained by Udit Agarwal

Open the Open Graph Generator

About Placeholder Image Generator

Placeholder services put a network request in the middle of a layout you are still designing, and a page full of them is slow, offline-hostile and one outage away from broken. Generating the same grey rectangle locally removes the dependency entirely: the result is an SVG you can save, rasterise to PNG, or paste as a data URI that needs no request at all. Sizes cover the ones people actually reach for — social cards, ad units, avatars, hero banners — and the label defaults to the dimensions, which is exactly what you want while a grid is being debugged. Colours, corner radius and the wireframe cross are all adjustable.

Features

  • Any width and height, with presets for social, ad and general sizes
  • Custom background and text colour, with an automatic readable default
  • Label defaults to the dimensions, or set your own text
  • Corner radius and the diagonal cross used in wireframes
  • Download as SVG, or rasterise to PNG at full resolution
  • Data URI that works offline and costs no request
  • Ready-made HTML, CSS background and JSX snippets
  • Aspect ratio shown in lowest terms

How to use the Placeholder Image Generator

  1. Set the width and height, or pick one of the presets
  2. Choose colours and a label, or leave the dimensions as the label
  3. Copy the data URI, or download an SVG or PNG
  4. Paste the HTML, CSS or JSX snippet straight into your layout

Example

Input

1200 × 630 · #e5e7eb background

Output

<img src="data:image/svg+xml,%3Csvg…" width="1200" height="630" alt="" />

An Open Graph card placeholder as a data URI — no request, no outage, and it renders identically offline.

Common errors & troubleshooting

  • The data URI breaks the CSS file. — Wrap it in double quotes inside url(), which the CSS snippet here already does. Unquoted data URIs containing commas and parentheses confuse some parsers.
  • The PNG comes out blurry on a retina screen. — Generate it at twice the display size. The PNG is rasterised at exactly the pixel dimensions you enter, so a 600-pixel-wide slot wants a 1200-pixel image.
  • The label overflows a short, wide box. — The font size is fitted to both the height and the label length, but a very long label in a banner-shaped box still runs out of room. Shorten the text or set an explicit size.

Frequently asked questions

How do I make a placeholder image of a specific size?
Type the width and height above and the image is generated immediately. Download it as SVG or PNG, or copy the data URI to paste directly into markup.
Why use a data URI instead of a placeholder service?
It removes a network request per image, works offline, and cannot break when a third-party service goes down or starts rate-limiting. For a page of forty placeholders that is forty fewer requests during development.
SVG or PNG for placeholders?
SVG for anything on screen — it is a few hundred bytes and stays sharp at any size. PNG when a tool insists on a raster image, such as a design app or an image field that validates the file type.
What size should an Open Graph image be?
1200 by 630 pixels, which is the preset here. It is the size Facebook, LinkedIn and most link-preview renderers crop to, giving a 1.91:1 card.
Can I use the generated images in production?
Yes. The output is plain SVG or PNG that you own outright — there is no attribution requirement and no external dependency once the file or data URI is in your project.

Related tools

  • BlurHash Generator — Turn an image into a BlurHash string, and decode any hash back to a preview.
  • App Icon Generator — Turn one image into every iOS, macOS and Android app icon size — downloaded as a ZIP, in your browser.
  • SVG to PNG Converter — Convert SVG to PNG or JPG at any scale, with a transparent or solid background, in your browser.
  • Image Optimizer — Re-encode and shrink images (JPEG/WebP/PNG), optionally resizing.
  • Aspect Ratio Calculator — Simplify ratios, solve missing dimensions and fit sizes into boxes, with CSS output.
  • Open Graph Generator — Generate Open Graph & Twitter meta tags with a live social-card preview.

Guides

More Images tools

  • ASCII Art Generator — Convert any image into ASCII art, with character sets, contrast and invert.
  • Image Filters — Apply grayscale, sepia, contrast, blur and more, then export the PNG and the CSS.
  • Image Splitter — Cut a picture into a grid of tiles and download them as a ZIP.
  • Image Merger — Combine images side by side, stacked or in a grid, with gaps and a background.
  • Collaborative Whiteboard — Draw together with someone over a direct browser-to-browser connection.
  • Thumbmark Maker — Turn a photo of an inked thumbprint into a clean transparent PNG for forms.
  • Signature Background Remover — Lift a signature off a photo of paper into a transparent PNG, in the ink colour you pick.
  • Image to Text (OCR) — Pull the text out of photos, screenshots and scans with on-device recognition.
  • Image Resizer — Resize photos by pixels, percentage, preset or longest side — in batches, with a ZIP download.
  • Compress Image to Size — Bring a photo under an exact size such as 20 KB, 50 KB, 100 KB or 200 KB.
  • Passport Photo Maker — Crop a photo to passport and ID sizes and lay out a print-ready sheet of copies.
  • Favicon Generator — Make favicon.ico, PNG sizes, an Apple touch icon and a web manifest from an image, letters or an emoji.

See all Images tools (40) · All tools