Badge maker

Make a shields-style status badge as SVG from a label, a message and a colour, in five styles.

Input

Left-hand text. Leave empty for a badge with only a message.
Right-hand text.
Message background: a name such as brightgreen, red or blue, or hex such as #4c1.
Label background: a name or hex.
Badge shape.

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

NameTypeRequiredWhat 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.