SVG placeholder generator

Generate svg images to use as a placeholder in your applications.

About SVG placeholder generator

Creates a placeholder image as an SVG: a coloured rectangle with the dimensions written in the middle (or your own text), available as SVG source, as a Base64 data URL, or as a downloadable file.

When you would use it

How to use it

  1. Set the width and height, the background and text colours, the font size and optionally a custom text.
  2. Choose whether the SVG declares its exact size or only a viewBox so it scales to its container.
  3. Copy the SVG source or the Base64 data URL, or download the .svg file.

Things worth knowing

Frequently asked questions

Why use SVG instead of a placeholder service?
No network request, no third-party dependency, works offline and in tests, and the file is tiny. A service is only better when you need realistic photos.
Can I use it as the src of an img tag?
Yes, either save the file and reference it, or paste the data URL straight into src. Both work in all browsers.

All the tools