Badge maker
Make a shields-style status badge as SVG from a label, a message and a colour, in five styles.
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/badge-svg \
-H 'Content-Type: application/json' \
-d '{"input":{"label":"build","message":"passing","color":"brightgreen"}}'
import json, urllib.request
body = {'input': {'label': 'build', 'message': 'passing', 'color': 'brightgreen'}}
request = urllib.request.Request("https://setget.net/v1/tools/badge-svg", 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/badge-svg", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"label":"build","message":"passing","color":"brightgreen"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "badge-svg",
"input": {
"label": "build",
"message": "passing",
"color": "brightgreen"
}
}
{
"input": {
"label": "build",
"message": "passing",
"color": "brightgreen"
}
}
Endpoint: POST /v1/tools/badge-svg. Over MCP: run_tool with slug: "badge-svg".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
label |
string | no | Left-hand text. Leave empty for a badge with only a message. |
message |
string | yes | Right-hand text. |
color |
string | no | Message background: a name such as brightgreen, red or blue, or hex such as #4c1. Default: "blue". |
label_color |
string | no | Label background: a name or hex. Default: "#555". |
style |
string | no | Badge shape. One of: flat, flat-square, plastic, for-the-badge, social. Default: "flat". |
logo |
string | no | An icon at the left, such as github, python or docker. One of: alert, apple, aws, check, cloudflare, code, discord, docker, eye, flame, git, github, gitlab, go, heart, javascript, kubernetes, linux, mongodb, nodejs, npm, postgresql, python, redis, rust, shield, star, terminal, typescript, windows, zap. |
link |
string | no | Where the badge links to inside the SVG: an http or https address, or "none". Default: "none". |
Examples
A green build badge
Input
{
"label": "build",
"message": "passing",
"color": "brightgreen"
}Result
Different every time. Press the example button above to see one.
Large uppercase style with a logo
Input
{
"label": "version",
"message": "2.4.1",
"style": "for-the-badge",
"logo": "github"
}Result
Different every time. Press the example button above to see one.
Questions
- Can the badge show live data?
- Yes: store the value in a SetGet key and use https://setget.net/badge/<key>. This tool makes a fixed badge.
- How do I get a PNG?
- Use the badge-png tool, which draws the same badge as a PNG.
Related tools
- Badge maker (PNG)Make a shields-style status badge as a PNG picture, at one to four times its normal size.
badge-png - Social preview card generatorMake a 1200×630 social preview (Open Graph) card as SVG with a wrapped title, subtitle and site name.
og-card - Placeholder image generatorMake an SVG placeholder image of any size with a centred label, for mock-ups and layouts.
placeholder-image - .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