Placeholder image generator
Updated Direct link in one click
Building a layout before the real photos arrive? Use a placeholder image: a solid-color image of the exact size you need with its dimensions printed in the middle. Design the URL below and copy it into your HTML, CSS, Figma or test data.
URL format
https://imgdrop.dev/api/placeholder/{width}x{height}[.png]?bg={hex}&fg={hex}&text={label}
/api/placeholder/600x400 600×400 SVG, gray
/api/placeholder/1200x630.png Open Graph size, PNG
/api/placeholder/300?bg=0ea5e9&fg=fff 300×300, blue with white text
/api/placeholder/728x90?text=Ad+space leaderboard banner with a labelCommon placeholder sizes
| Use | Size |
|---|---|
| Open Graph / social share image | 1200×630 |
| HD video thumbnail (16:9) | 1280×720 |
| Instagram portrait (4:5) | 1080×1350 |
| Leaderboard ad | 728×90 |
| Medium rectangle ad | 300×250 |
| Avatar | 96×96 or 128×128 |
Tips
- Always set
widthandheighton the<img>so your layout doesn’t shift when real images replace the placeholders. - Use a label (
?text=Hero) to mark what each slot is for in mockups. - Colors accept 3- or 6-digit hex without the
#.
Need to host a real image?
Upload it here and get a direct link in seconds.
- Image to URLTurn any picture into a shareable link.
- Image link generatorLinks plus HTML, Markdown and BBCode.
- Image URL generatorA direct .png/.jpg URL — also via curl.
- Images for DiscordLinks that embed in chats and bots.
- Images for forumsReady-made [img] BBCode.
- Temporary image hostingLinks that delete themselves.
Frequently asked questions
How do I use a placeholder image URL?
Put it anywhere an image URL goes: <img src="https://imgdrop.dev/api/placeholder/600x400">. Change the numbers for a different size; add ?bg=1e293b&fg=ffffff&text=Hello for colors and a label.
SVG or PNG?
SVG is tiny and perfectly sharp at any size — the best default for web mockups. Use PNG (add .png after the size) where SVG isn’t accepted, such as some email clients, Open Graph tags or native apps.
What sizes are allowed?
Any width and height from 1 to 4000 pixels. A single number like /api/placeholder/300 makes a square.
Will placeholder URLs ever expire?
No. Placeholders are generated on the fly from the URL, cached for a year and never uploaded or stored.
Your business here? Sponsor this tool from $9/week. See placements