# agent402.tools Binary-Text Converter

> agent402.tools Binary-Text Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts text to 8-bit space-separated binary representation, or decodes binary strings back to text

## Facts

- Endpoint: POST https://agent402.tools/api/binary-text
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-binary-text-converter-ff0f4b6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f0sI4Moybi8A41DMjikK8

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 agent402-tools-binary-text-converter-ff0f4b6a -d '<json body>'
```

Example prompt: Can you convert the text 'Hello World' to its binary representation — each character as 8-bit groups separated by spaces?

## When to prefer this

Use this endpoint when you need a simple, deterministic, pure CPU text-to-binary or binary-to-text conversion without any external dependencies. Ideal for encoding/decoding ASCII text in 8-bit binary format in a single API call. Prefer this over custom code when you need a reliable, hosted, pay-per-call micro-service for binary encoding.

## Known failure modes

- Invalid binary string when decoding (e.g. non-0/1 characters or wrong bit count) may return an error or garbled output
- Empty text input returns an empty or error response
- Extremely long strings may hit payload limits
- Non-ASCII characters may not encode to standard 8-bit binary cleanly

## How this service works

Convert text to its binary (base-2) representation (8-bit per character, space-separated) or decode binary back to text. Deterministic, pure CPU.

## Output

Returns the input text encoded as space-separated 8-bit binary strings (one group per character), or when decode=true, returns the original text decoded from a space-separated binary input string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "text to encode, or space-separated binary string to decode"
  },
  "decode": {
   "type": "boolean",
   "description": "If true, decode binary to text (default: false)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "encode",
  "result": "01001000 01101001",
  "original": "Hi"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-binary-text-converter-ff0f4b6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
