SVG Placeholder Generator

Generate SVG placeholder images and data URIs

Runs in your browserUtility04Generators

What is SVG Placeholder Generator?

The SVG placeholder generator builds a vector placeholder at whatever size, label and colours you specify, and hands back both the source and a data URI you can inline directly. The result is a few hundred bytes and stays sharp at any scale. Everything is generated in your browser, with no image service involved.

How to use SVG Placeholder Generator

  1. 1Set the width and height — leave the text empty and the dimensions are drawn instead.
  2. 2Adjust the background and text colours if you need to.
  3. 3Copy the SVG source or the data URI into your markup as a development placeholder.

Frequently asked questions

Why use this instead of a placeholder image service?+

Three reasons: there is no external dependency, so it works offline and can never go down or disappear; the output is only a few hundred bytes; and being vector, it stays sharp at any size. The trade-off is that it cannot produce photographic placeholders, and for those you still need a real image.

How do I use the data URI?+

Drop it straight into an img src or a CSS background-image. Note that an SVG data URI should be URL-encoded rather than Base64-encoded, because the encoded form is smaller — and that is the form this tool outputs.

Related tools

All tools