A minimal, stateless, CDN-cache-friendly placeholder image generator. Generate images instantly via URL — perfect for web development, UI design, mockups, and prototyping.
Define image size directly in the URL path:
https://tempimg.cc/300 https://tempimg.cc/300x200
Multiple output formats are supported. PNG is used by default:
https://tempimg.cc/400x200.png https://tempimg.cc/400x200.jpg https://tempimg.cc/400x200.webp
Customize background color (bg), text color (color), and displayed text (text).
Both HEX values and common color names are supported.
https://tempimg.cc/400x200?bg=blue&color=white&text=Loading
Use | to split text into multiple lines. Font size is automatically adjusted and centered:
https://tempimg.cc/400x240?text=400x240|Placeholder
Generate high-resolution images for Retina and high-DPI displays using the dpr parameter:
https://tempimg.cc/300x200?dpr=2
The actual output resolution will be 600×400, while the visual size remains 300×200.
bg: Background color (HEX or color name, e.g. blue, green)
color: Text color (HEX or color name)
text: Displayed text (URL-encoded, supports multiple lines)
dpr: Device pixel ratio (1–3)