placeholders.dev
Generate super-fast placeholder images in 333+ edge locations, powered by Cloudflare Workers
About
placeholders.dev generates custom placeholder images on the fly. All images are generated on Cloudflare's edge network at 333+ locations worldwide, ensuring optimal performance. Images are cached for extended periods.
Ask your AI agent
This page exposes WebMCP tools, so a WebMCP-compatible browser agent can build and inspect placeholder URLs for you while you have this page open. Nothing to install, just ask it for what you need:
- “Generate a 1200x630 dark grey social share placeholder that says Hello World”
- “Make me a 64x64 avatar placeholder that works in light and dark mode”
- “What options does this placeholders.dev URL use?”
Example URLs
Basic path
https://images.placeholders.dev/350
Width × Height
https://images.placeholders.dev/350x150
Query parameters
https://images.placeholders.dev/?width=1055&height=100&text=Hello&bgColor=%23f7f6f6&textColor=%236d6e71
API Options
width- Width of generated image. Defaults to
300. height- Height of generated image. Defaults to
150. text- Text to display on generated image. Defaults to the image dimensions.
fontFamily- Font to use for the text. Defaults to
sans-serif. fontWeight- Font weight to use for the text. Defaults to
bold. fontSize- Font size to use for the text. Defaults to 20% of the shortest image dimension, rounded down.
dy- Adjustment applied to the
dyattribute of the text element to appear vertically centered. Defaults to 35% of the font size. bgColor- Background color of the image. Defaults to
#ddd. textColor- Color of the text. For transparency, use an
rgbaorhslavalue. Defaults torgba(0,0,0,0.5). textWrap- Wrap text to fit within the image. Will not alter font size, so long strings may still overflow. Defaults to
false.