API & MCP

Everything a person can do on Unicode Inspector, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Unicode Inspector

Breaks text into code points with U+ value, name, general category, script and UTF-8/UTF-16 encoding; counts graphemes; compares NFC/NFD/NFKC/NFKD forms; and flags zero-width and invisible characters, bidirectional controls (Trojan Source) and mixed-script look-alike words used in phishing.

Inputs of Unicode Inspector
FieldTypeDefaultDescription
text (required)textarea—Text. Up to 20,000 characters; the table lists the first 500 code points.

Example request

Look-alike domain (Cyrillic "а" in paypal) with a zero-width space

curl -X POST https://unicodeinspector.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"pаypal​.com"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "unicode-inspector": { "type": "http", "url": "https://unicodeinspector.usefulweb.site/mcp" }
  }
}