# Web3 Tools Hex Converter

> Web3 Tools Hex Converter is a paid API for AI agents from web3-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Converts between hex strings, UTF-8 text, and signed/unsigned integers with 32-byte padding for EVM/blockchain data handling.

## Facts

- Endpoint: GET https://web3-tools.x402tookit.com/hex-convert?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web3-tools-hex-converter-78aab2c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PycrwtxTOx_NaItTGvLCp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability web3-tools-hex-converter-78aab2c8
```

Example prompt: Can you decode this hex string to readable text: 0x48656c6c6f20576f726c64? I want to know what it says in plain UTF-8.

## When to prefer this

Choose this endpoint when you need to convert between hex, text, and integer representations in an EVM/blockchain context — especially when 32-byte padding is required for ABI compatibility. It handles both directions (encode/decode) and signed vs unsigned integers, making it ideal for parsing calldata, event logs, or ABI-encoded parameters without needing a local web3 library.

## Known failure modes

- Invalid hex string (non-hex characters or malformed 0x prefix) returns an error
- Unknown or missing 'op' query parameter causes failure
- Non-UTF-8 byte sequences in hex-to-text conversion may result in garbled or error output
- Integer out of range for int-to-hex may not be handled gracefully
- Missing required 'value' query parameter returns an error

## How this service works

Convert hex to UTF-8 text or an integer (signed or unsigned), and text or integers to hex with 32-byte padding.

## Output

Returns the converted value in the requested format: for hex-to-text, the UTF-8 decoded string; for hex-to-int, both signed and unsigned integer representations; for text-to-hex or int-to-hex, the hex string with 32-byte padding. Also includes metadata fields such as source, bytes, summary, and any reasons or disclaimer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "op",
      "value"
     ],
     "properties": {
      "op": {
       "type": "string",
       "description": "hex-to-text, text-to-hex, hex-to-int or int-to-hex"
      },
      "value": {
       "type": "string",
       "description": "The hex, text or decimal integer to convert"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "bytes": {
       "type": [
        "null",
        "number"
       ]
      },
      "signed": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "unsigned": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "signedDiffers": {
       "type": [
        "boolean",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web3-tools-hex-converter-78aab2c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web3-tools.x402tookit.com](https://www.zero.xyz/host/web3-tools.x402tookit.com/llms.txt)
