Free Placeholder Image Generator Online
Get placeholder images of any size for mockups and tests: /v1/placeholder/600x400.png. SVG with custom text and colours, or a solid-colour PNG.
Result
Press “Run” to see the result.
The Placeholder Image API returns dummy images of exactly the size you need for wireframes, UI prototypes, seed data and automated tests. Put the size in the path – /v1/placeholder/600x400, /v1/placeholder/600x400.png or just /v1/placeholder/300 for a square – or use the width and height query parameters (default 600×400).
The default SVG output shows a centred label (the dimensions, or your own text up to 60 characters) on a neutral grey background; background (or bg) and color accept hex colours. SVG files are tiny and scale perfectly. With .png or format=png you get a solid-colour PNG of the requested size, without text, which is handy when a real raster file is required (upload tests, image pipelines).
Width and height go from 1 to 4000 pixels; PNG placeholders are limited to 4 megapixels. Responses are cacheable for 7 days.
Use this in your code
curl "https://apibox.io.vn/v1/placeholder/600x400?text=Hello" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o outputconst res = await fetch('https://apibox.io.vn/v1/placeholder/600x400?text=Hello', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const blob = await res.blob();import requests
res = requests.get(
"https://apibox.io.vn/v1/placeholder/600x400?text=Hello",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
open("output", "wb").write(res.content)<?php
$ch = curl_init('https://apibox.io.vn/v1/placeholder/600x400?text=Hello');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
file_put_contents('output', $response);API documentation → Get a free API key
FAQ
How do I get a 1200×630 Open Graph placeholder?
Request /v1/placeholder/1200x630 for an SVG with the size written on it, or /v1/placeholder/1200x630.png for a PNG file.
Can I change the text and colours?
Yes, for SVG output: text=Hello&background=1e293b&color=ffffff. The text is limited to 60 characters and the font size adapts to the image. PNG placeholders are a solid background colour only.
What is the maximum size?
4000 pixels per side. PNG output is additionally limited to 4 megapixels (for example 2000×2000); larger PNG requests return a too_large error.