Basic Usage
placehold.es/400• size: Size (e.g: 200 or 300x200)
• color: Hex color (e.g: ff0000)
• format: jpg, png, webp
• text: Custom text
Examples
Different combinations of size, color and format
/300/6366f1 Purple square
/300x200/ec4899 Pink rectangle
/300/10b981/png Green in PNG
/300?text=Hello With custom text
/300/f59e0b?text=Sale! Yellow with text
/300/06b6d4?text=Line+1\nLine+2 Multiline text
URL Builder
API Reference
URL Formats
/[size]
/[size]/[color]
/[size]/[color]/[format]
Parameters
size
Required. Image size.
Examples: 200, 300x200 (max 4000x4000)
color
Optional. Background color in hex without #.
Default: cccccc | Examples: ff0000, abc, 123456
format
Optional. Output format.
Default: jpg | Options: jpg, png, webp
text
Query param. Custom text.
Usage: ?text=Hello+World | \n for line breaks