Encoding
nanoid entropy analysis API
Analyzes a nanoid string: length, distinct characters, URL-safety, and the entropy implied by the default 64-symbol alphabet (bits per char and total). Answers 'How much entropy does this nanoid carry?', 'Is this nanoid URL-safe?'
Price$0.01per request
MethodPOST
Route/v1/encoding/nanoid-info
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
nanoidentropyidanalyzeurl-safebitscollisionencoding
API URL
Integration docshttps://x402.hexl.dev/v1/encoding/nanoid-infoExample request
{
"value": "V1StGXR8_Z5jdHi6B-myT"
}Example response
{
"length": 21,
"alphabetSize": 64,
"distinctChars": 21,
"bitsPerChar": 6,
"totalEntropyBits": 126,
"uniqueChars": "-1568BGHRSTVXZ_dijmty",
"looksUrlSafe": true,
"interpretation": "21-char nanoid carries ~126.0 bits of entropy (default 64-symbol alphabet); URL-safe=true."
}Input schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"examples": [
"V1StGXR8_Z5jdHi6B-myT"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}