Progress bar image generator

Make an SVG progress bar with a percentage label, your colours, rounded corners and optional stripes.

Input

Current progress.
The value that means complete.
Width in pixels.
Height in pixels.
Colour of the filled part: hex or a basic colour name.
Colour of the empty track.
Text to show instead of the percentage.
Show the percentage (or your label) on the bar.
Corner radius in pixels. Leave out for fully rounded ends; 0 gives square corners.
Overlay diagonal stripes on the filled part.

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/progress-bar-image \
  -H 'Content-Type: application/json' \
  -d '{"input":{"value":72}}'
import json, urllib.request

body = {'input': {'value': 72}}
request = urllib.request.Request("https://setget.net/v1/tools/progress-bar-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/progress-bar-image", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"value":72}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "progress-bar-image",
  "input": {
    "value": 72
  }
}
{
  "input": {
    "value": 72
  }
}

Endpoint: POST /v1/tools/progress-bar-image. Over MCP: run_tool with slug: "progress-bar-image". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
value number yes Current progress.
maximum number no The value that means complete. Default: 100.
width integer no Width in pixels. Default: 320. From 20 to 4000.
height integer no Height in pixels. Default: 28. From 4 to 400.
colour string no Colour of the filled part: hex or a basic colour name. Default: "#1baf7a".
background string no Colour of the empty track. Default: "#e5e7eb".
label string no Text to show instead of the percentage.
show_label boolean no Show the percentage (or your label) on the bar. Default: true.
radius integer no Corner radius in pixels. Leave out for fully rounded ends; 0 gives square corners. From 0 to 200.
striped boolean no Overlay diagonal stripes on the filled part. Default: false.

Examples

72%

Input
{
  "value": 72
}
Result

Different every time. Press the example button above to see one.

A custom label with stripes

Input
{
  "value": 3,
  "maximum": 8,
  "label": "3 of 8 done",
  "colour": "#2a78d6",
  "striped": true,
  "radius": 4
}
Result

Different every time. Press the example button above to see one.

Questions

What if the value is over the maximum?
The bar is drawn full, and the percentage label is capped at 100%. Values below zero show as 0%.