Tool guide
About this tool.
- SVG Placeholder writes a one-rectangle SVG with a centered text label at the width and height you choose, for image slots whose real artwork is not ready yet.
- The markup is a few hundred bytes, has no external references and stays sharp at any screen density.
- Fill image slots in wireframes, prototypes and component stories, or test layouts, aspect ratios and lazy loading.
- Stand in for an Open Graph image (1200 × 630), an avatar or an ad slot until the final artwork arrives.
Enter Width and Height in pixels as whole numbers from 1 to 10,000.
Type a Label, or leave the field empty to show the size, such as 400x400.
Set the Background and Foreground colors, for example #1f2937 and #ffffff.
Choose the Format: SVG, PNG or JPEG. Run the tool, then copy the SVG markup or the image data URI, or download placeholder.svg, placeholder-1200x630.png or .jpg.
- Width 1200, Height 630, Label 1200x630 → <svg width="1200" height="630" viewBox="0 0 1200 630"> with a #1f2937 rectangle and 86 px white text.
- Width 400, Height 400, Label empty → the label reads 400x400, drawn at 29 px.
- Width 150, Height 150 → the text uses its 16 px minimum size.
- Label Tom & Jerry → Tom & Jerry in the markup, so the SVG stays valid.
- Background red, Foreground rgb(0 0 0) → fill="red" and fill="rgb(0 0 0)", copied as typed.
- Format PNG, Width 1200, Height 630 → placeholder-1200x630.png with the same layout, plus its data: URI as the text.
- Width 20000 → error: Width must be an integer between 1 and 10000.
- Generated locally; the SVG links to no fonts, images or scripts on the network.
- The label is one line of Arial or the system sans-serif font at 1/14 of the width, at least 16 px. Long labels are not wrapped and can run past the edges.
- Colors must be valid CSS colors in every format; an invalid value is refused with an error. In SVG they are copied into the fill attributes as typed.
- PNG and JPEG are drawn on a canvas with the same layout, in Arial 1/14 of the width. They are limited to 16,777,216 pixels (4,096 × 4,096); Quality applies to JPEG only.
- Width and Height must be whole numbers from 1 to 10,000; other values are refused with an error.