Placeholder image generator
Make an SVG placeholder image of any size with a centred label, for mock-ups and layouts.
Input
Result
Fill in the input and press Run.
Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.
Use it from code or an agent
curl -s https://setget.net/v1/tools/placeholder-image \
-H 'Content-Type: application/json' \
-d '{"input":{"width":120,"height":60}}'
import json, urllib.request
body = {'input': {'width': 120, 'height': 60}}
request = urllib.request.Request("https://setget.net/v1/tools/placeholder-image", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/placeholder-image", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"width":120,"height":60}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "placeholder-image",
"input": {
"width": 120,
"height": 60
}
}
{
"input": {
"width": 120,
"height": 60
}
}
Endpoint: POST /v1/tools/placeholder-image. Over MCP: run_tool with slug: "placeholder-image".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
width |
integer | no | Width in pixels. Default: 600. From 1 to 4000. |
height |
integer | no | Height in pixels. Default: 400. From 1 to 4000. |
label |
string | no | Text to show. Defaults to the size, such as 600×400. |
background |
string | no | Background colour: hex or a basic colour name. Default: "#e2e8f0". |
text_colour |
string | no | Label colour: hex or a basic colour name. Default: "#64748b". |
Examples
Input
{
"width": 120,
"height": 60
}Result
{
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"120\" height=\"60\" viewBox=\"0 0 120 60\"><rect width=\"120\" height=\"60\" fill=\"#e2e8f0\"/><text x=\"60\" y=\"38.4\" font-family=\"Helvetica,Arial,sans-serif\" font-size=\"24\" font-weight=\"bold\" text-anchor=\"middle\" fill=\"#64748b\">120×60</text></svg>",
"width": 120,
"height": 60
}A custom label and colours
Input
{
"width": 800,
"height": 200,
"label": "Hero banner",
"background": "#1e293b",
"text_colour": "#f8fafc"
}Result
Different every time. Press the example button above to see one.
Questions
- Can I use it as an img source?
- Yes. Save the SVG as a file, or call the API URL and use the "svg" value. SVG stays sharp at any size.
Related tools
- Background pattern generatorMake seamless SVG background patterns (dots, grid, stripes, checker or waves) with your colours and scale.
pattern-image - Gradient image generatorMake an SVG image filled with a linear or radial gradient from your colour stops, plus the matching CSS.
gradient-image - Social preview card generatorMake a 1200×630 social preview (Open Graph) card as SVG with a wrapped title, subtitle and site name.
og-card - .gitignore generatorBuild a .gitignore for the languages, editors and operating systems you use, merged without duplicates.
gitignore-generate - ASCII banner text generatorTurn short text into large five-line banner letters for terminals, READMEs, logs and code comments.
ascii-banner - ASCII table generatorRender headers and rows as a box-drawing or plain ASCII table for terminals, logs and code comments.
ascii-table