Placeholder Image Generator
Make a placeholder image at any size — presets for ads, social and Open Graph, custom colours and label, as SVG, data URI or PNG.
Layouts cannot be judged empty: a card grid, a hero or an ad slot only shows its real spacing, wrapping and overflow once something of the right size sits in it, and that something is a placeholder image. This generator builds one as a true vector: a single SVG rectangle in your background colour with a centred label in your text colour, sized exactly as you asked. Worked example: a 600 × 400 request with the default colours produces an SVG that literally declares width="600" and height="400", fills the frame with #cccccc, and centres the label “600 × 400” in #333333 — open the SVG markup box under the preview and you can read every one of those values yourself, because the whole image is that one short document. Dimensions are clamped honestly rather than silently: anything below 1 becomes 1 and anything above 4000 becomes 4000, so a typo cannot ask your browser to rasterise a billboard.
The placeholder is generated locally as an SVG in this browser — it is never uploaded, never stored and never put into a link, and the label text you type stays in page memory on your device. The PNG download is rasterised on a canvas at exactly the size you set, so a 1200 × 630 request gives a 1200 × 630 file, not a scaled preview.
Quick answers
How do I make a 1200 × 630 placeholder image?
Press the 1200 × 630 preset (or type 1200 and 630), leave the label empty to show “1200 × 630”, then copy the SVG or data URI, or download a PNG rasterised at exactly 1200 × 630. A 600 × 400 example declares width="600" and height="400" in its SVG and fills the frame with the background colour you picked.
Widths and heights clamp to 1–4000 px, and the whole image is generated locally as an SVG — nothing is uploaded.
What is a placeholder image data URI?
It is the whole SVG image encoded into a single string starting data:image/svg+xml, so it can sit directly in an img src or a CSS background with no separate file and no server request. Copy it from the Data URI box under the preview.
Use the plain SVG markup instead when you can inline it in HTML — it is shorter, readable, and easier to edit later.
How to use
- Set the width and height in pixels (each is clamped to 1–4000), or press a preset: 300 × 250 ad slot, 728 × 90 leaderboard, 1200 × 630 social share image, or 1080 × 1080 square.
- Pick the background and text colours and type a custom label if you want one — leave the label empty and the image labels itself with its own dimensions, W × H.
- Check the live preview, then copy the SVG markup to inline it, copy the data URI to drop it into a CSS background or an img src, or download a PNG rasterised at exactly the size you set.
- Swap the placeholder for the real asset before you ship: a placeholder proves the layout, it is not content, and leaving one live is a bug your visitors will find for you.
About this tool
Choosing an output is choosing a trade-off. Inline SVG is smallest and stays sharp at any display size, and it is the right choice while you are building. A data URI (the same SVG, URL-encoded behind a data:image/svg+xml prefix) drops straight into a stylesheet or an src attribute with no extra file and no extra request — handy in prototypes, email drafts and test fixtures. The PNG download is rasterised on a canvas at exactly the requested pixel size, which is what you want when a system demands a real image file of fixed dimensions, for example an ad trafficker or a CMS upload check. Label text is escaped before it enters the SVG, so a label containing < or & displays as typed instead of breaking the markup — try “Fish & Chips <300>” and read the escaped entities in the markup box. Everything is generated locally; no image, label or colour choice is uploaded anywhere.
Frequently asked questions
What sizes can I generate?
Any width and height from 1 to 4000 pixels each — the inputs are clamped to that range, so 0 becomes 1 and 99999 becomes 4000. The presets cover the sizes asked for most often: 300 × 250, 728 × 90, 1200 × 630 (the standard social share image) and 1080 × 1080 (a square post).
SVG, data URI or PNG — which should I use?
SVG for building layouts: it is tiny and sharp at any size. A data URI for embedding without a file: it pastes into CSS or an img src and needs no hosting. PNG when a system insists on a real image file at exact dimensions: the download here is rasterised at precisely the width and height you set, not scaled from the preview.
Can I put my own text on the placeholder?
Yes — type any label and it replaces the default dimension label. The text is XML-escaped before it is placed in the SVG, so characters like <, > and & show exactly as typed and cannot break the image markup. Leave the box empty to go back to the automatic “W × H” label.
Is anything uploaded when I generate an image?
No. The SVG is assembled as a string in this browser, the preview is that string rendered in the page, and the PNG is drawn on a local canvas. Nothing is uploaded, stored or put into a link — the size, colours and label you choose stay in page memory on your device.
First time embedding? Read the step-by-step guide →
More free tools
UUID Generator
Generate random v4 UUIDs in bulk.
JSON Formatter & Validator
Format, minify and validate JSON in one click.
What Is My IP
See your public IP address instantly. No sign-up, nothing stored.
Regex Tester
Test, check and validate regular expressions with live highlighting.
JWT Decoder
Decode a JWT token without the secret — see its header and payload.
SHA-256 Hash Generator
Generate SHA-256 / SHA-512 hashes instantly.