Tabs ↔ Spaces Converter
Convert between tabs and spaces with adjustable width — leading-only or all whitespace.
Detected indentation: 3 tab lines, 0 space lines
Converted
</>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/tabs-spaces/run \
-H "Content-Type: application/json" \
-d '{
"input": "your input here",
"direction": "tabs-to-spaces",
"scope": "leading",
"width": 2
}'JavaScript (fetch)
const res = await fetch("https://api.b-e-a-d.com/tools/tabs-spaces/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"input": "your input here",
"direction": "tabs-to-spaces",
"scope": "leading",
"width": 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_tabs_spacesFull reference: developer docs · OpenAPI spec
Two scopes
- Leading only — converts indentation at the start of each line, leaves alignment in the middle alone. The safer default for code.
- Everywhere — converts all matching whitespace. Use for prose, not code.
You might also like
- Comment Style ConverterTranslate //, #, --, ;, %, /* */, and <!-- --> comments between languages while preserving indentation.
- ANSI Escape StripperRemove ANSI color codes and terminal control sequences from CI logs or terminal captures.
- Diff CheckerCompare two pieces of text side-by-side with line- and word-level highlighting.
- Email Address List ParserParse RFC 5322 address lists with display names, quoted strings, comments, and validation.