Encoding Utilities

Hex Decode

Converts hexadecimal strings back to readable text using deterministic decoding. Access via MCP in Cursor or Windsurf, or call GET /v1/encode/hex/decode directly. Input "48656c6c6f20576f726c64" returns "Hello World". Handles both uppercase and lowercase hex formats, making it essential for debugging encoded data in AI workflows.

API Endpoint

GET /v1/encode/hex/decode

Code Examples

curl "https://tinyfn.io/v1/encode/hex/decode" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/encode/hex/decode', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/encode/hex/decode',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's encoding tools:

{
  "mcpServers": {
    "tinyfn-encoding": {
      "url": "https://tinyfn.io/mcp/encoding",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I decode hex strings using MCP in my AI editor?

Call the hex decode tool with your hex string as input. Works in Cursor, Windsurf, and other MCP-enabled editors for instant conversion without manual calculation.

What format should my hex string be in?

Standard hexadecimal format — pairs of characters 0-9 and A-F (case insensitive). No 0x prefix needed, spaces optional between pairs.

Can hex decode handle invalid or malformed hex strings?

Invalid characters or odd-length strings will return an error. Each pair must be valid hex digits to decode properly to ASCII/UTF-8 text.

What's the difference between hex decode and base64 decode?

Hex uses 16 characters (0-F) with 2 chars per byte, while base64 uses 64 characters with ~1.33 chars per byte. Choose based on your encoded format.

Does hex decode work with non-ASCII text like emoji?

Yes, it decodes any valid UTF-8 byte sequence. Multi-byte characters like emoji will decode correctly if the hex represents valid UTF-8 encoding.

Try Hex Decode Now

Get your free API key and start using Hex Decode in seconds.

Get Free API Key