Placeholder Images On-The-Fly

No signup required. Just build the URL. Custom sizes, colors, text, SVG output. Completely free.

<img src="https://placeholderapi.celpippractice.workers.dev/800/600">

Live Examples

Features

Any Size

Specify width and height in the URL path. From 1px to 4000px.

Custom Colors

Set background and text color via query params. Use any hex color.

Custom Text

Add overlay text to label your placeholders. Great for wireframes.

SVG Output

Get lightweight SVG by default. Add ?format=png for raster output.

Pricing

FREE

Unlimited requests. No API key needed. No rate limits.

Usage Reference

GET /:width/:height

Generate a placeholder image with the given dimensions.

ParamTypeDescription
widthint (path)Image width in pixels (required)
heightint (path)Image height in pixels (required)
bgstring (query)Background hex color without # (default cccccc)
colorstring (query)Text hex color without # (default 666666)
textstring (query)Custom overlay text (default WxH)
formatstring (query)svg or png (default svg)

Examples

https://placeholderapi.celpippractice.workers.dev/400/300
https://placeholderapi.celpippractice.workers.dev/200/200?bg=1a1a2e&color=6ee7b7
https://placeholderapi.celpippractice.workers.dev/600/400?text=Hero+Image
https://placeholderapi.celpippractice.workers.dev/100/100?format=png