TempImg

A minimal, stateless, CDN-cache-friendly placeholder image generator. Generate images instantly via URL — perfect for web development, UI design, mockups, and prototyping.

Basic Usage

Define image size directly in the URL path:

https://tempimg.cc/300
https://tempimg.cc/300x200
300x300 placeholder example 300x200 placeholder example

Image Formats

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

Custom Colors & Text

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
Custom color and text example

Multiline Text

Use | to split text into multiple lines. Font size is automatically adjusted and centered:

https://tempimg.cc/400x240?text=400x240|Placeholder
Multiline text placeholder example

High-DPI (DPR) Support

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.

Parameters

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)