Which operations are available?
encode, decode, hash, jwt_decode, normalize, data_uri_encode, and data_uri_decode. GET /api/v1/encoding-convert returns the full catalog including encodings and hash algorithms.
Base64, URL encoding, SHA-256, Unicode normalization, and JWT claim inspection that always returns verified: false.
This calls the live Encoding Convert API. Pick an operation, edit the sample, and preview the result.
Running conversion...
Why Encoding Convert API
Common transport encodings
Base64, Base64url, Base32, Hex, URL, HTML entities, and Punycode in encode or decode.
Hash digests
SHA-256 by default, plus SHA-384, SHA-512, and SHA-3. Output as hex, base64, or base64url.
JWT inspection, not trust
Header, payload, and selected claims with verified: false. Signatures are never treated as valid.
Unicode normalization
NFC, NFD, NFKC, and NFKD so agents can canonicalize strings before compare or store.
Data URIs
Encode or decode data URIs with an explicit MIME type. Useful for small inline payloads.
Bounded and stateless
Inputs cap at 1,000,000 characters. Nothing is persisted. Signing and encryption are not in this API.
/api/v1/encoding-convert
Run an operation
encode, decode, hash, jwt_decode, normalize, data_uri_encode, or data_uri_decode.
Catalog
Operations, encodings, hash algorithms, hash outputs, and max input length.
| Parameter | Type | Required | Description |
|---|---|---|---|
| operation | string | yes | encode, decode, hash, jwt_decode, normalize, data_uri_encode, or data_uri_decode. |
| input | string | yes | Text, encoded value, JWT, or data URI. Max 1,000,000 characters. |
| encoding | string | yes* | Required for encode/decode: base64, base64url, base32, hex, url, html-entity, punycode. |
| algorithm | string | yes* | Required for hash. Defaults to sha256. |
| output | string | no | Hash output: hex, base64, or base64url. |
| form | string | yes* | Unicode form for normalize: NFC, NFD, NFKC, or NFKD. |
Error reference
Invalid operation, encoding, algorithm, form, or input.
Missing or invalid gateway API key. Send x-api-key or api_key with every request.
Unknown route under /api/v1/encoding-convert.
Input exceeds 1,000,000 characters.
More than 120 requests in a 15-minute window.
Example error response
{
"success": false,
"error": { "code": "VALIDATION_ERROR", "message": "Unsupported operation." },
"correlationId": "1784849006651-enc01"
}FAQ
encode, decode, hash, jwt_decode, normalize, data_uri_encode, and data_uri_decode. GET /api/v1/encoding-convert returns the full catalog including encodings and hash algorithms.
No. jwt_decode returns header, payload, selected claims, and verified: false. The service never treats decoded claims as trusted.
POST operation=hash with algorithm=sha256 (default) and optional output of hex, base64, or base64url. MD5 and SHA-1 are compatibility-only.
Input is capped at 1,000,000 characters. Oversized payloads return 413 before conversion runs.
Send your Datpaq API key as an x-api-key header or an api_key query parameter. Keys are created in the Datpaq dashboard and a free tier is included.
Base64, URL encoding, and SHA-256 from a single endpoint with a consistent JSON envelope.