data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22600%22%20height=%22400%22%20viewBox=%220%200%20600%20400%22%20role=%22img%22%20aria-label=%22600×400%22%3E%20%3Crect%20width=%22100%25%22%20height=%22100%25%22%20fill=%22%23e2e8f0%22/%3E%20%3Ctext%20x=%2250%25%22%20y=%2250%25%22%20fill=%22%2364748b%22%20font-family=%22system-ui,%20-apple-system,%20Segoe%20UI,%20Roboto,%20Helvetica,%20Arial,%20sans-serif%22%20font-size=%2240%22%20text-anchor=%22middle%22%20dominant-baseline=%22middle%22%3E600×400%3C/text%3E%20%3C/svg%3E<img src="data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22600%22%20height=%22400%22%20viewBox=%220%200%20600%20400%22%20role=%22img%22%20aria-label=%22600×400%22%3E%20%3Crect%20width=%22100%25%22%20height=%22100%25%22%20fill=%22%23e2e8f0%22/%3E%20%3Ctext%20x=%2250%25%22%20y=%2250%25%22%20fill=%22%2364748b%22%20font-family=%22system-ui,%20-apple-system,%20Segoe%20UI,%20Roboto,%20Helvetica,%20Arial,%20sans-serif%22%20font-size=%2240%22%20text-anchor=%22middle%22%20dominant-baseline=%22middle%22%3E600×400%3C/text%3E%20%3C/svg%3E" width="600" height="400" alt="600×400" />background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22600%22%20height=%22400%22%20viewBox=%220%200%20600%20400%22%20role=%22img%22%20aria-label=%22600×400%22%3E%20%3Crect%20width=%22100%25%22%20height=%22100%25%22%20fill=%22%23e2e8f0%22/%3E%20%3Ctext%20x=%2250%25%22%20y=%2250%25%22%20fill=%22%2364748b%22%20font-family=%22system-ui,%20-apple-system,%20Segoe%20UI,%20Roboto,%20Helvetica,%20Arial,%20sans-serif%22%20font-size=%2240%22%20text-anchor=%22middle%22%20dominant-baseline=%22middle%22%3E600×400%3C/text%3E%20%3C/svg%3E");<svg xmlns="http://www.w3.org/2000/svg" width="600" height="400" viewBox="0 0 600 400" role="img" aria-label="600×400">
<rect width="100%" height="100%" fill="#e2e8f0"/>
<text x="50%" y="50%" fill="#64748b" font-family="system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif" font-size="40" text-anchor="middle" dominant-baseline="middle">600×400</text>
</svg>/api/placeholder-imageThe API URL returns the same SVG, data URI, img tag and CSS as JSON, for scripts and curl.
Related tools
- Image to Data URLConvert an image to a base64 data URL, or decode a data URL back into a downloadable file.
- Image ToolboxInspect image metadata, view and strip EXIF, and convert or resize with the editor panel.
- Handwriting PadWrite or draw with pressure sensitive ink, then export it as SVG or PNG.
- Image SteganographyHide a text message or a whole file inside an image's pixel bits, then extract it back out, entirely in your browser.
- Dial-Up Loading GIF MakerTurn any image or animated GIF into a GIF that loads in line by line at uneven dial-up speed.
- Meme GeneratorAdd classic caption text to any image and export it as a PNG, with no account and no watermark.
What it does
Generates a placeholder image at any size from 1 to 4000 pixels, with a live preview. Pick a size or a preset such as Open Graph or Full HD, choose background and text colors, and optionally type your own label, which is sized to fit the image. Download it as PNG, JPEG, WebP, or SVG, copy the image itself, or copy a data URI, an img tag, or a CSS background-image declaration.
How to use it
Type a width and height or press a size preset, and lock the aspect ratio if one side should follow the other. Set the two colors with the pickers or as hex values, and leave the text blank to show the pixel dimensions. Choose a file format and press Download, or copy whichever text form you need from the rows under the preview. The API URL row gives the same image to scripts and curl.
Why this one
Hosted placeholder services need a live request every time the image loads, see the referrer of every page that embeds them, and can go down. This one draws the image in your browser, so your files and inputs never leave your device, the result works offline once you have it, and there is nothing to attribute or rate limit.
FAQ
- Which format should I download?
- SVG for mockups and anywhere the image may be scaled, because it stays sharp at any size and is a few hundred bytes. PNG when a tool only accepts raster images. JPEG or WebP when you want to test how a page handles those specific types.
- What does the text show if I leave it blank?
- The pixel dimensions, such as 600 by 400, which is the usual placeholder convention. Type anything else to replace it, and keep the fit switch on so a long label shrinks to stay inside the image.
- Can I use the result directly as an img src?
- Yes. Copy the Data URI or HTML img tag row and paste it into your markup. Both embed the SVG inline, so the image loads with no hosting and no extra request.
Keyboard shortcuts: press ? anywhere on this page to see them.