Image Tools

SVG Placeholder Generator

Generate lightweight placeholder images as SVG. Set the size, colors, and label, then copy the SVG code or use the data URL straight in an image tag.

SVG placeholder preview
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="480" viewBox="0 0 640 480"><rect width="640" height="480" fill="#e5e1d8"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="sans-serif" font-size="80" fill="#1a1a1a">640x480</text></svg>
Image src data URL
data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22480%22%20viewBox%3D%220%200%20640%20480%22%3E%3Crect%20width%3D%22640%22%20height%3D%22480%22%20fill%3D%22%23e5e1d8%22%2F%3E%3Ctext%20x%3D%2250%25%22%20y%3D%2250%25%22%20dominant-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20font-family%3D%22sans-serif%22%20font-size%3D%2280%22%20fill%3D%22%231a1a1a%22%3E640x480%3C%2Ftext%3E%3C%2Fsvg%3E

How SVG placeholders work

A placeholder is a rectangle with centered text rendered as SVG. Because it is plain markup, it stays sharp at any scale and can be embedded as a data URL with no separate file or request.

Frequently asked questions

Why use SVG placeholders instead of images?

SVG placeholders are tiny text files, scale to any size without blur, and need no external service or network request.

Can I use the data URL directly in an img tag?

Yes. Set the img src to the generated data URL and it renders instantly with no extra file to host.

What text shows by default?

If you leave the text field empty, the placeholder shows its own width and height, which is handy for wireframes.

Are these safe for production?

They are best for mockups, wireframes, and loading states. For real content, use optimized images.

Related SVG tools