# Tidy Byte Tools API

> 19 small, fast text and data tools (repair JSON, Base64, hashes, YAML/XML to JSON, Markdown chunks, diffs, dates, UUIDs and more) as a free HTTP API and a remote MCP server at https://mcp.tidybytetools.com. Free to try with no sign-up. Paid per-call billing is not live yet.

Every tool is a POST with a small JSON body and returns JSON with `ok: true` or an `error`. Anonymous use is allowed (50 calls per IP per UTC day). A free key from `POST /keys` raises this to 200 calls per key per UTC day; send it as `Authorization: Bearer tbt_...`. A bad key returns HTTP 401 `invalid_api_key`. Request bodies are capped at 16 KB.

This API does not read PDFs or Word files, crawl websites, or convert images. For those, and for bulk jobs, use the paid Apify actors linked below.

## Connect

- [MCP server (Streamable HTTP)](https://mcp.tidybytetools.com/mcp): add this URL to any MCP client; no key needed
- [MCP discovery](https://mcp.tidybytetools.com/.well-known/mcp): server card for MCP clients
- [OpenAPI 3 spec](https://mcp.tidybytetools.com/openapi.json): every endpoint with request and response schemas
- [APIs.json](https://mcp.tidybytetools.com/apis.json): a short index of this API, its OpenAPI, MCP server, and pricing
- [Pricing (JSON)](https://mcp.tidybytetools.com/pricing.json): free limits and planned paid prices
- [Tool list (JSON)](https://mcp.tidybytetools.com/v1/tools): ids, paths and one-line summaries

## Tools

- [Repair JSON](https://mcp.tidybytetools.com/tools/json-repair.md): Fix broken or incomplete JSON, including text from language models. (POST /v1/json-repair)
- [Base64 encode or decode](https://mcp.tidybytetools.com/tools/base64.md): Turn text into Base64, or Base64 back into text. URL-safe and data URIs work too. (POST /v1/base64)
- [Hash text](https://mcp.tidybytetools.com/tools/hash.md): SHA-256, SHA-1, MD5, and SHA-512 checksums of text. (POST /v1/hash)
- [Shape text into JSON](https://mcp.tidybytetools.com/tools/json-shaper.md): Turn key-value lines, CSV, or a Markdown table into clean JSON. (POST /v1/json-shaper)
- [Format or minify JSON](https://mcp.tidybytetools.com/tools/json-format.md): Pretty-print or shrink valid JSON. (POST /v1/json-format)
- [Chunk Markdown](https://mcp.tidybytetools.com/tools/md-chunk.md): Split Markdown into heading-aware chunks for search and RAG. (POST /v1/md-chunk)
- [Diff two texts](https://mcp.tidybytetools.com/tools/text-diff.md): Line-level diff of two strings, plus a unified patch. (POST /v1/text-diff)
- [YAML ↔ JSON](https://mcp.tidybytetools.com/tools/yaml-json.md): Convert a common YAML subset to JSON, or JSON to YAML. (POST /v1/yaml-json)
- [XML ↔ JSON](https://mcp.tidybytetools.com/tools/xml-json.md): Convert XML to JSON, or a JSON object back to XML. (POST /v1/xml-json)
- [Sanitize HTML](https://mcp.tidybytetools.com/tools/html-sanitize.md): Strip scripts and unsafe markup. Keeps a short allow-list of tags. (POST /v1/html-sanitize)
- [Normalize dates](https://mcp.tidybytetools.com/tools/date-timezone.md): Parse a messy date and convert it to a timezone you choose. (POST /v1/date-timezone)
- [URL encode or decode](https://mcp.tidybytetools.com/tools/url-codec.md): Percent-encode or decode a string or query map. (POST /v1/url-codec)
- [Normalize Unicode](https://mcp.tidybytetools.com/tools/unicode.md): NFC, NFD, NFKC, or NFKD normalization, plus a character count. (POST /v1/unicode)
- [Make IDs](https://mcp.tidybytetools.com/tools/id-generate.md): Create a UUID, ULID, or NanoID. (POST /v1/id-generate)
- [Decode a JWT](https://mcp.tidybytetools.com/tools/jwt-decode.md): Read a JWT header and payload. This does not check the signature. (POST /v1/jwt-decode)
- [Parse a cron expression](https://mcp.tidybytetools.com/tools/cron-parse.md): Explain a 5- or 6-field cron string and list the next fire times in UTC. (POST /v1/cron-parse)
- [GTIN / EAN / UPC checksum](https://mcp.tidybytetools.com/tools/gtin-checksum.md): Check or fill the check digit on a barcode number. (POST /v1/gtin-checksum)
- [Format SQL](https://mcp.tidybytetools.com/tools/sql-format.md): Pretty-print a SQL query. This is a lightweight formatter, not a full SQL parser. (POST /v1/sql-format)
- [Convert units](https://mcp.tidybytetools.com/tools/unit-convert.md): Convert length, mass, temperature, volume, time, area, speed, and data-size units. (POST /v1/unit-convert)

## Optional

- [Full reference in one file](https://mcp.tidybytetools.com/llms-full.txt): every tool with curl, Python and JavaScript examples
- [Website](https://tidybytetools.com): all Tidy Byte Tools, including desktop and lite tools
- [Paid Apify actors](https://apify.com/tidybytetools): bulk and heavier jobs (PDF tables, documents to Markdown, link checking, images)
- [Free lite tools on GitHub](https://github.com/tidybytetools): local CLIs and MCP servers
- [Privacy](https://tidybytetools.com/privacy/): how our tools handle your data
