XML Formatter & Validator
Pretty-print or minify XML and validate that it's well-formed.
Output
</>Use this tool programmaticallycurl · JavaScript · MCP
Same tool, callable from any HTTP client or from Claude (via MCP). Anonymous: 100 req/day per IP. Sign up for 1,000 req/day.
curl
curl https://api.b-e-a-d.com/tools/xml-formatter/run \
-H "Content-Type: application/json" \
-d '{
"mode": "pretty",
"input": "your input here",
"indent": 2
}'JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/xml-formatter/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"mode": "pretty",
"input": "your input here",
"indent": 2
}),
});
const data = await res.json();
console.log(data.result);MCP (Claude Desktop / Claude Code)
# In Claude Desktop / Claude Code, add to your MCP config:
{
"mcpServers": {
"bead": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.b-e-a-d.com"]
}
}
}
# Then ask Claude to call:
mcp__bead__bead_xml_formatterFull reference: developer docs · OpenAPI spec
You might also like
- JSON Formatter & ValidatorPretty-print, minify, and validate JSON.
- ANSI Escape StripperRemove ANSI color codes and terminal control sequences from CI logs or terminal captures.
- Comment Style ConverterTranslate //, #, --, ;, %, /* */, and <!-- --> comments between languages while preserving indentation.
- Diff CheckerCompare two pieces of text side-by-side with line- and word-level highlighting.