How does it work exactly?
SizeThe size can be specified using the format width x height:
https://placehold.co/600x400Specifying the height is optional, useful for creating a square:
https://placehold.co/400The maximum image size is 4000 x 4000 px.
The minimum image size is 10 x 10 px.
FormatThe image format can be specified:
https://placehold.co/600x400/png https://placehold.co/600x400.pngThe default format is SVG.
Image formats can also be combined with colours:
https://placehold.co/600x400/000000/FFFFFF/png https://placehold.co/600x400/000000/FFFFFF.pngSupported formats are SVG, PNG, JPEG, GIF and WebP.
ColourThe background and text colours are represented using hex values:
https://placehold.co/600x400/000000/FFFAlternatively, CSS names can be used:
https://placehold.co/600x400/orange/whiteBoth background and text colours must be specified together.
TextThe text can be customised using a query string.
Spaces are represented using +:
https://placehold.co/600x400?text=Hello+WorldNew lines are represented using \n:
https://placehold.co/600x400?text=Hello\nWorldThe default text is the dimensions of the image.
FontThe font can be customised using a query string:
https://placehold.co/600x400?font=robotoThe following fonts can be used:
The default font is Lato.
Fonts can, of course, be combined with text:
https://placehold.co/800?text=Hello+World&font=roboto RetinaNeed a retina image? Simply append @2x or @3x to the size:
https://placehold.co/600x400@2x.png https://placehold.co/800@2x.png https://placehold.co/600x400@3x.png https://placehold.co/800@3x.pngOnly PNG, JPEG, GIF and WebP formats support retina images.