API

API reference

Every tool is an HTTP endpoint, an MCP tool and an A2A skill. This reference is generated from the code that validates requests, so parameter types, limits and response fields are exactly what the server enforces. Each endpoint page can also run a live request.

EndpointMCP tool / A2A skillToolSummary
/api/url/encodeurl_encodeURL Encode / DecodePercent-encode text (RFC 3986).
/api/url/decodeurl_decodeURL Encode / DecodeDecode percent-encoded text.
/api/base64/encodebase64_encodeBase64Encode text as Base64 (RFC 4648).
/api/base64/decodebase64_decodeBase64Decode Base64 to UTF-8 text.
/api/html/encodehtml_encodeHTML EntitiesEscape text for HTML.
/api/html/decodehtml_decodeHTML EntitiesDecode HTML entities.
/api/hex/encodehex_encodeHexText to hexadecimal UTF-8 bytes.
/api/hex/decodehex_decodeHexHexadecimal bytes to text.
/api/punycode/encodepunycode_encodePunycode / IDNUnicode domain to ASCII (IDNA / RFC 3492).
/api/punycode/decodepunycode_decodePunycode / IDNASCII (xn--) domain to Unicode.
/api/hashhashHash GeneratorDigest data with one or more hash algorithms.
/api/hash/verifyhash_verifyFile Hash VerificationCheck data against an expected hash or a checksum list.
/api/fingerprintfingerprintFingerprintsFingerprint SSH keys, X.509 certificates, SPKI public keys, and OpenPGP keys.
/api/cert/decodecert_decodeCertificate DecoderDecode X.509 certificates, chains, and certificate requests.
/api/tls/checktls_checkTLS CheckerConnect to a host and check the certificate chain it presents: trust, host name, expiry, protocol.
/api/jwt/decodejwt_decodeJWT InspectorDecode a JWT, check its claims and algorithm, and optionally verify it with a public key.
/api/url/parseurl_parseURL ParserSplit a URL into its parts with the WHATWG URL parser browsers use.
/api/ip/inspectip_inspectIP Address InspectorCanonical form, special-purpose ranges, embedded IPv4 and global reachability of any IPv4 or IPv6 address.
/api/uuid/generateuuid_generateUUID Generator & InspectorGenerate random (v4) or time-ordered (v7) UUIDs, up to 1000 at a time.
/api/uuid/inspectuuid_inspectUUID Generator & InspectorRead a UUID’s version, variant and embedded timestamp, clock sequence and node.
/api/text/inspecttext_inspectText InspectorExact counts of characters, bytes, words and lines; find substrings; reveal invisible characters.
/api/time/nowtime_nowTime & Time ZonesThe current instant from the server clock, in one or more time zones.
/api/time/converttime_convertTime & Time ZonesParse a date-time or Unix timestamp and show it in other zones and formats.
/api/time/difftime_diffTime & Time ZonesElapsed time and calendar difference between two instants, DST-aware.
/api/time/addtime_addTime & Time ZonesAdd or subtract an ISO 8601 duration to an instant, calendar-aware in a time zone.
/api/cron/explaincron_explainCron ExplainerValidate a cron expression, describe it in English, and list its next run times in a zone.
/api/difftext_diffText DiffDiff two texts by line, word or character: unified diff, structured changes, and stats.
/api/json/formatjson_formatJSON Format & ValidateCheck that text is valid JSON (RFC 8259), pretty-print or minify it, and find duplicate keys.
/api/json/schema/validatejson_schema_validateJSON Schema ValidatorValidate a JSON instance against a JSON Schema (draft 2020-12, 2019-09, 7, 6 or 4) and list every error with JSON Pointers.
/api/convert/json-to-yamljson_to_yamlYAML Format & ValidateConvert JSON to YAML 1.2, quoting strings that YAML 1.1 parsers would misread.
/api/convert/yaml-to-jsonyaml_to_jsonYAML Format & ValidateConvert YAML to JSON under pinned YAML 1.2 core-schema rules, with line/column errors and YAML 1.1 pitfall warnings.
/api/json/queryjson_queryJMESPath QueryEvaluate a JMESPath expression against JSON and return the result, its type and pretty JSON.
/api/yaml/formatyaml_formatYAML Format & ValidateCheck YAML against yamllint’s rules (same rule IDs) and return the findings with positions, plus a comment-preserving formatted copy.
/api/json/lintjson_lintJSON Format & ValidateValidate JSON strictly and report every lint finding with its position.
/api/csv/formatcsv_formatCSV Validate & FormatCheck CSV against RFC 4180, detect the delimiter and header, infer column types, list every problem with its position, and rewrite it consistently.
/api/convert/csv-to-jsoncsv_to_jsonCSV Validate & FormatConvert CSV to a JSON array of objects (keyed by the header) or of arrays, optionally typing numbers and booleans.
/api/convert/json-to-csvjson_to_csvCSV Validate & FormatConvert a JSON array of objects or of arrays to CSV, with the union of keys as the header.
/api/toml/formattoml_formatTOML Format & ValidateCheck that text is valid TOML 1.0, list problems with line and column, and re-format it with comments kept.
/api/convert/toml-to-jsontoml_to_jsonTOML Format & ValidateConvert a TOML 1.0 document to JSON, with line and column for any error.
/api/convert/json-to-tomljson_to_tomlTOML Format & ValidateConvert a JSON object to a TOML 1.0 document.
/api/csp/checkcsp_checkCSP CheckerParse a Content-Security-Policy, and list what it would block in an HTML document, with the hashes that would allow the inline parts.
/api/tools/requesttool_requestRequest a ToolAsk for a new deterministic tool to be added to this service, describing the job and an example.
/api/tools/requeststool_requestsRequest a ToolSee the tool requests you have made with these credentials and what became of each.

Machine-readable: /openapi.json (OpenAPI 3.1) · MCP: https://util.caruana.me/mcp · A2A: https://util.caruana.me/.well-known/agent-card.json

Conventions

  • Base URL: https://util.caruana.me. HTTPS only.
  • Authentication: a client ID and secret on every call, as HTTP Basic or a bearer token. Agents register themselves; people use a form. See Authentication.
  • Methods: every endpoint accepts GET and POST; OPTIONS answers CORS preflight.
  • Parameters are read from the query string and, for POST, merged with the body. The body can be a JSON object (application/json; typed values such as numbers and arrays are accepted), a form (application/x-www-form-urlencoded or multipart/form-data), a raw upload (application/octet-stream, for endpoints that take binary data), or a text/plain body used as input.
  • Validation is strict: unknown parameter names are rejected (unknown_parameter), so typos surface immediately.
  • Lists are comma-separated in query strings and forms, or JSON arrays in JSON bodies.
  • Limits: 1 MiB request bodies; 60 requests per minute per client, plus general abuse protection.
  • Responses are application/json with cache-control: no-store, x-content-type-options: nosniff and referrer-policy: no-referrer.
  • CORS: access-control-allow-origin: *, with authorization allowed, so browser apps can call the API with their own credentials.

Global parameters

ParameterTypeDefaultDescription
formatjson | textjsonjson returns the documented object. text returns only the primary value as text/plain (see "Text output").

Errors

Errors have a non-2xx status and a JSON body:

{ "error": "Invalid mode: must be one of component, uri, form.", "code": "invalid_parameter", "param": "mode" }
CodeStatusMeaning
missing_parameter400A required parameter is absent.
unknown_parameter400A parameter name the endpoint does not define. Typos are rejected, not ignored.
invalid_parameter400Wrong type, out of range, not an allowed value, or an unparsable body.
unauthenticated401No credentials, wrong credentials, or an expired bearer token.
credentials_expired401The client has expired; the message says whether and until when it can be renewed.
revoked403The credentials were revoked by the service owner.
verification_failed403The human check on the credentials form failed.
renewal_refused403More than 90 days past expiry, or revoked.
not_found404No endpoint at that path.
method_not_allowed405Use GET or POST.
payload_too_large413Body over 1 MiB.
unprocessable_input422Valid parameters, but the input cannot be processed (malformed encoding, not a certificate, …).
rate_limited429More than your per-minute limit (default 60). Retry after 60 seconds.
internal_error500A bug. The message never contains your input.
upstream_error502A backing service (the TLS checker) failed or timed out.
service_unavailable503A required service is not configured on this deployment.

Security and privacy

  • The API is not the page. Tool pages compute locally in your browser; the API, by definition, sends your input to the server. Each endpoint states exactly what the server receives.
  • No secrets, ever. No endpoint accepts or creates passwords, private keys or HMAC keys. Those tools exist only on the pages, which run locally. The one exception is your own client_secret: shown once, stored only as a SHA-256 hash.
  • Inputs and outputs are never stored or logged. What is recorded: your client record, and one metadata row per call (operation, time, transport, status, error code, duration, byte sizes, country), kept 90 days.
  • What Cloudflare sees: as the host, Cloudflare terminates TLS and processes request metadata (IP address, the full URL including the query string, headers) under its own policies. Put inputs in POST bodies.

See Security & privacy for the full model and how to verify it.