Placeholder image generator

Custom placeholder images for your web app or wireframe.

Base URL is https://jsonexamples.com/image. Provide the size after the URL — only the size is required. Append a background colour, then a text colour (both hex), then any number of query options. The text query option overrides the default label.

<img src="https://jsonexamples.com/image/300">
<img src="https://jsonexamples.com/image/250x100">
<img src="https://jsonexamples.com/image/250x100/ff0000">
<img src="https://jsonexamples.com/image/350x200/ff0000/000">
<img src="https://jsonexamples.com/image/350x200/?text=Hello+Peter">
<img src="https://jsonexamples.com/image/350x200/282828/eae0d0/?text=Hello+Peter&fontFamily=cookie">

Quick samples

Specify one dimension for a square image
URL/WIDTH
https://jsonexamples.com/image/150
150x150 placeholder
Specify width and height
URL/WIDTHxHEIGHT
https://jsonexamples.com/image/400x200
400x200 placeholder
Specify background colour
URL/SIZE/BACKGROUND
https://jsonexamples.com/image/400x200/282828
400x200 dark placeholder
Specify text colour
URL/SIZE/BACKGROUND/COLOR
https://jsonexamples.com/image/400x200/282828/ff0000
400x200 placeholder with red text
Specify image format (png/jpg/webp)
URL/?type=TYPE
https://jsonexamples.com/image/400x200/282828?type=jpg
400x200 placeholder as JPG
Specify font size
URL/?text=TEXT&fontSize=FONT_SIZE
https://jsonexamples.com/image/400x200?text=Hello+Peter!&fontSize=16
400x200 placeholder with smaller font

Available fonts

Click any font to preview the rendered image.

See the full API documentation at /docs/image, or browse JSON examples by domain.