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
- Filling image slots in a layout or a prototype before the real pictures exist.
- Providing a lightweight fallback or loading image in a web app.
- Generating a quick fixed-size image for a test or a documentation screenshot.
How to use it
- Set the width and height, the background and text colours, the font size and optionally a custom text.
- Choose whether the SVG declares its exact size or only a viewBox so it scales to its container.
- Copy the SVG source or the Base64 data URL, or download the .svg file.
Things worth knowing
- SVG placeholders are a few hundred bytes regardless of their dimensions, unlike PNG or JPEG placeholders, and they stay sharp at any zoom level.
- With "use exact size" the SVG has width and height attributes and renders at that size; without it, only the viewBox is kept and the image fills whatever size the <img> or CSS gives it.
- The Base64 data URL can be pasted directly into an <img src> or a CSS background-image, which avoids an extra request.
- The text is rendered with the viewer's default sans-serif font, so its exact look varies slightly between systems.
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.