Skip to main content

SVG Placeholder Generator

Images

Skeleton screens, design annotations and image slots waiting for the API all need something in place. A PNG placeholder has to be re-exported whenever the size changes and is needlessly heavy; an SVG is just “a rectangle, a label and two diagonals” — a few hundred bytes that scale to any pixel size and can even follow the container. What you get here is plain-text SVG you can paste straight into HTML or save as a `.svg` file.

Loading tool…

How to use

4 steps
  1. 01

    Enter width, height and a label (defaults to `600 × 400`); colours accept `#rgb`, `#rrggbb` or CSS colour names.

  2. 02

    The preview updates live and the code box holds a complete `<svg>` element you can copy or download.

  3. 03

    Use it as `<img src="data:image/svg+xml,…">`, or inline the `<svg>` so CSS can restyle its fills.

  4. 04

    Font size adapts to the shorter edge and the label length, so long text does not overflow.

Technical Notes & Guide

1

Inline SVG vs <img> reference

An inline SVG is part of the document: CSS variables, `currentColor` and pseudo-elements can reach inside it. An `<img>`-referenced SVG is a separate document that external CSS cannot touch — but it can be cached independently. Use inline when the placeholder must follow the theme, `<img>` when it is just holding space.

FAQ

2 questions
Q1Can the background be transparent?

Yes — set the background to `transparent` or `none`. SVG supports alpha natively, so the result works on any background.

Q2Does it open in Figma or Sketch?

Yes, it is standard SVG 1.1. Figma, Sketch and Illustrator import it as editable layers.

Images