SVG Placeholder Generator
Generate customizable SVG placeholder images with text, colors, and dimensions for web development and design mockups.
Input
Output
Guide
What is a placeholder image?
A placeholder stands in for a picture that isn't ready yet, so a mockup or a page layout shows the right size before the real image arrives. As an SVG it's just a few lines of text: paste it into HTML or save it as a .svg file, and it stays sharp at any zoom.
Tool description
Set the Width and Height in pixels, type the Text to show in the middle, and pick the Background color and Text Color. Font Size and Font Family set the look of the text. The preview and the SVG Code update as you type. The tool starts at 300 by 200 pixels with gray text (#666666) on light gray (#cccccc) in 16 pixel Arial, and no text until you type some or press Insert sample.
Copy the code from the SVG Code box, or use the buttons under the preview to download it as PNG or JPG or to print it.
Features
- Any width and height, text, colors and font size
- Text in Arial, Helvetica, Times, Georgia, Verdana, Trebuchet MS, Impact or Courier New
- SVG code to copy, plus PNG and JPG downloads
Example
With the starting settings and the text Placeholder, the SVG Code is:
<svg width="300" height="200" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#cccccc"/>
<text x="50%" y="50%" font-family="Arial" font-size="16" fill="#666666" text-anchor="middle" dominant-baseline="middle">Placeholder</text>
</svg>Good to know
- The SVG only names the font. The device that shows the image draws the text with its own copy of that font, or with a fallback font if it doesn't have it.
- The text goes into the code as typed, so
&and<break the SVG. Type&and<instead. - The text stays on one line, and anything wider than the image is cut off.
- PNG and JPG downloads are three times the size you set, so 300 by 200 saves as 900 by 600 pixels. For an exact size, use the SVG.