Progress bar image generator
Make an SVG progress bar with a percentage label, your colours, rounded corners and optional stripes.
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/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
| Name | Type | Required | What 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%.
Related tools
- Sparkline generatorDraw a tiny line or bar chart as SVG from a list of numbers, small enough to sit in a table cell or README.
sparkline - Chart generatorMake a clean SVG bar, line, area, pie or donut chart from labels and values, with axes, legend and title.
chart - 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