# Data Format Encoder

## Links

- Product page URL: https://www.agentpmt.com/marketplace/data-format-encoder
- Product markdown URL: https://www.agentpmt.com/marketplace/data-format-encoder?format=agent-md
- Product JSON URL: https://www.agentpmt.com/marketplace/data-format-encoder?format=agent-json

## Overview

- Product ID: 694de13fecea2b5619a17bdb
- Vendor: Apoth3osis
- Type: function
- Unit type: request
- Price: 500 credits
- Categories: Data Science, Developer Tools, Data Storage & Persistence, System Administration, Data Processing, Encoding & Decoding, Data Formatting & Conversion, Escaping & Sanitization
- Generated at: 2026-04-15T18:26:51.871Z

### Page Description

A text transformation utility that converts strings between various encoding formats commonly used in web development, data transmission, and programming. It provides bidirectional base64 encoding and decoding for binary-to-text representation used in data URLs, API payloads, and email attachments. URL encoding applies percent-encoding for safe transmission of special characters in query strings and path segments, while URL decoding reverses the process for parsing incoming requests. HTML entity encoding escapes special characters like angle brackets, ampersands, and quotes for safe inclusion in HTML documents, preventing XSS vulnerabilities and rendering issues. JSON string escaping handles special characters including newlines, tabs, backslashes, and quotes for embedding text within JSON structures. Hexadecimal conversion transforms text to and from hex representation for debugging, cryptographic applications, and low-level data inspection. Binary encoding produces space-separated 8-bit representations for educational purposes and bit-level analysis. ROT13 applies the classic letter substitution cipher that shifts characters by 13 positions, useful for simple text obfuscation. Unicode escape sequences convert non-ASCII characters to backslash-u notation for source code compatibility and cross-platform text handling. All operations include metadata about input and output lengths.

### Agent Description

Encode/decode text: Base64, URL encoding, HTML entities, JSON escaping, hex, binary, ROT13, Unicode escapes.

## Details Tab

### Details

A text transformation utility that converts strings between various encoding formats commonly used in web development, data transmission, and programming. It provides bidirectional base64 encoding and decoding for binary-to-text representation used in data URLs, API payloads, and email attachments. URL encoding applies percent-encoding for safe transmission of special characters in query strings and path segments, while URL decoding reverses the process for parsing incoming requests. HTML entity encoding escapes special characters like angle brackets, ampersands, and quotes for safe inclusion in HTML documents, preventing XSS vulnerabilities and rendering issues. JSON string escaping handles special characters including newlines, tabs, backslashes, and quotes for embedding text within JSON structures. Hexadecimal conversion transforms text to and from hex representation for debugging, cryptographic applications, and low-level data inspection. Binary encoding produces space-separated 8-bit representations for educational purposes and bit-level analysis. ROT13 applies the classic letter substitution cipher that shifts characters by 13 positions, useful for simple text obfuscation. Unicode escape sequences convert non-ASCII characters to backslash-u notation for source code compatibility and cross-platform text handling. All operations include metadata about input and output lengths.

### Actions

- `encode-base64-encode` (5 credits): Encode plain text to Base64 format.
- `encode-base64-decode` (5 credits): Decode a Base64-encoded string back to plain text.
- `encode-url-encode` (5 credits): Percent-encode text for safe use in URLs (query strings, path segments).
- `encode-url-decode` (5 credits): Decode a percent-encoded (URL-encoded) string back to plain text.
- `encode-html-entity-encode` (5 credits): Escape special HTML characters into HTML entities (e.g., < becomes &lt;).
- `encode-html-entity-decode` (5 credits): Convert HTML entities back to their original characters.
- `encode-escape-json` (5 credits): Escape special characters in text for safe embedding inside JSON strings (newlines, tabs, quotes, backslashes).
- `encode-unescape-json` (5 credits): Convert JSON-escaped sequences back to their original characters.
- `encode-text-to-hex` (5 credits): Convert text to its hexadecimal byte representation.
- `encode-hex-to-text` (5 credits): Convert a hexadecimal string back to plain text. Spaces, colons, and hyphens between hex bytes are automatically removed.
- `encode-text-to-binary` (5 credits): Convert text to its 8-bit binary representation (space-separated bytes).
- `encode-binary-to-text` (5 credits): Convert an 8-bit binary string back to plain text. The binary string length must be a multiple of 8 bits.
- `encode-rot13-encode` (5 credits): Apply the ROT13 substitution cipher to text. ROT13 is its own inverse — apply it again to decode.
- `encode-unicode-escape` (5 credits): Convert Unicode characters to their escape sequences (\uXXXX format).
- `encode-unicode-unescape` (5 credits): Convert Unicode escape sequences back to their original characters.

### Use Cases

Base64 encoding, base64 decoding, binary to text encoding, data URL creation, API payload encoding, file content encoding, image base64 conversion, URL encoding, percent encoding, query string encoding, URL parameter escaping, special character encoding, URL decoding, query string parsing, percent decoding, HTML entity encoding, HTML escaping, XSS prevention, safe HTML output, ampersand encoding, angle bracket escaping, HTML entity decoding, HTML unescaping, entity parsing, JSON string escaping, JSON special character handling, newline escaping, quote escaping, backslash encoding, JSON unescape, JSON string parsing, text to hex conversion, hexadecimal encoding, hex string generation, debug output formatting, hex to text conversion, hexadecimal decoding, hex string parsing, text to binary conversion, binary representation, bit string generation, binary to text conversion, binary decoding, bit string parsing, ROT13 encoding, ROT13 decoding, simple text obfuscation, letter rotation cipher, Unicode escaping, Unicode escape sequences, non-ASCII encoding, source code compatibility, Unicode unescaping, escape sequence parsing, web development encoding, data transformation, character encoding, string manipulation, AI agent encoding, LLM text processing

### Workflows Using This Tool

No public workflows currently reference this product.

### Related Content

No related content is currently linked to this product.

## Advanced Tab

### DynamicMCP

- Setup page URL: https://www.agentpmt.com/dynamic-mcp
- Claude setup guide: https://www.agentpmt.com/dynamic-mcp?platform=claude#videos
- ChatGPT setup guide: https://www.agentpmt.com/dynamic-mcp?platform=chatgpt#videos
- Cursor setup guide: https://www.agentpmt.com/dynamic-mcp?platform=cursor#videos
- Windsurf setup guide: https://www.agentpmt.com/dynamic-mcp?platform=windsurf#videos

STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections. This lightweight connector routes requests to `https://api.agentpmt.com/mcp`. All tool execution happens in the cloud and the server cannot edit any files on your computer.

```bash
npm install -g @agentpmt/mcp-router
agentpmt-setup
```

### REST API

The live page renders cURL, Python, JavaScript, and Node.js examples. Logged-in users see those examples prefilled with their own API and budget credentials.

- Purchase endpoint: https://api.agentpmt.com/products/purchase
- Authorization format: `Bearer <base64(apiKey:budgetKey)>`

```bash
curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer eW91ci1hcGkta2V5LWhlcmU6eW91ci1idWRnZXQta2V5LWhlcmU=" \
  -d '{
    "product_id": "694de13fecea2b5619a17bdb",
    "parameters": {
      "action": "encode-base64-encode",
      "text": "example_text"
    }
  }'
```

### Autonomous Agents

Do not use the abbreviated instructions in this product markdown for wallet-based invocation. Retrieve the full External Agent API markdown document instead.

- External Agent API page URL: https://www.agentpmt.com/external-agent-api
- External Agent API markdown URL: https://www.agentpmt.com/external-agent-api?format=agent-md

### Schema

#### Parameters

- Schema type: actions

```json
{
  "actions": {
    "encode-base64-encode": {
      "description": "Encode plain text to Base64 format.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The plain text to encode to Base64.",
          "required": true
        }
      }
    },
    "encode-base64-decode": {
      "description": "Decode a Base64-encoded string back to plain text.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The Base64-encoded string to decode.",
          "required": true
        }
      }
    },
    "encode-url-encode": {
      "description": "Percent-encode text for safe use in URLs (query strings, path segments).",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text to URL-encode.",
          "required": true
        }
      }
    },
    "encode-url-decode": {
      "description": "Decode a percent-encoded (URL-encoded) string back to plain text.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The URL-encoded string to decode.",
          "required": true
        }
      }
    },
    "encode-html-entity-encode": {
      "description": "Escape special HTML characters into HTML entities (e.g., < becomes &lt;).",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text containing HTML characters to escape.",
          "required": true
        }
      }
    },
    "encode-html-entity-decode": {
      "description": "Convert HTML entities back to their original characters.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The HTML-entity-encoded string to decode.",
          "required": true
        }
      }
    },
    "encode-escape-json": {
      "description": "Escape special characters in text for safe embedding inside JSON strings (newlines, tabs, quotes, backslashes).",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text to JSON-escape.",
          "required": true
        }
      }
    },
    "encode-unescape-json": {
      "description": "Convert JSON-escaped sequences back to their original characters.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The JSON-escaped string to unescape.",
          "required": true
        }
      }
    },
    "encode-text-to-hex": {
      "description": "Convert text to its hexadecimal byte representation.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The plain text to convert to hexadecimal.",
          "required": true
        }
      }
    },
    "encode-hex-to-text": {
      "description": "Convert a hexadecimal string back to plain text. Spaces, colons, and hyphens between hex bytes are automatically removed.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The hexadecimal string to convert to text.",
          "required": true
        }
      }
    },
    "encode-text-to-binary": {
      "description": "Convert text to its 8-bit binary representation (space-separated bytes).",
      "properties": {
        "text": {
          "type": "string",
          "description": "The plain text to convert to binary.",
          "required": true
        }
      }
    },
    "encode-binary-to-text": {
      "description": "Convert an 8-bit binary string back to plain text. The binary string length must be a multiple of 8 bits.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The binary string to convert to text (spaces between bytes are optional).",
          "required": true
        }
      }
    },
    "encode-rot13-encode": {
      "description": "Apply the ROT13 substitution cipher to text. ROT13 is its own inverse — apply it again to decode.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text to encode with ROT13.",
          "required": true
        }
      }
    },
    "encode-unicode-escape": {
      "description": "Convert Unicode characters to their escape sequences (\\uXXXX format).",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text containing Unicode characters to escape.",
          "required": true
        }
      }
    },
    "encode-unicode-unescape": {
      "description": "Convert Unicode escape sequences back to their original characters.",
      "properties": {
        "text": {
          "type": "string",
          "description": "The string containing \\uXXXX escape sequences to convert.",
          "required": true
        }
      }
    }
  },
  "properties": {
    "action": {
      "type": "string",
      "description": "The encoding/decoding operation to perform. Use 'get_instructions' to retrieve documentation. Available actions: Base64 (encode-base64-encode, encode-base64-decode), URL (encode-url-encode, encode-url-decode), HTML (encode-html-entity-encode, encode-html-entity-decode), JSON (encode-escape-json, encode-unescape-json), Hex (encode-text-to-hex, encode-hex-to-text), Binary (encode-text-to-binary, encode-binary-to-text), ROT13 (encode-rot13-encode), Unicode (encode-unicode-escape, encode-unicode-unescape)",
      "required": true,
      "enum": [
        "get_instructions",
        "encode-base64-encode",
        "encode-base64-decode",
        "encode-url-encode",
        "encode-url-decode",
        "encode-html-entity-encode",
        "encode-html-entity-decode",
        "encode-escape-json",
        "encode-unescape-json",
        "encode-hex-to-text",
        "encode-text-to-hex",
        "encode-binary-to-text",
        "encode-text-to-binary",
        "encode-rot13-encode",
        "encode-unicode-escape",
        "encode-unicode-unescape"
      ]
    },
    "text": {
      "type": "string",
      "description": "The text to encode or decode. Required for all encoding/decoding actions (not required for 'get_instructions'). For encoding actions, provide plain text. For decoding actions, provide the encoded text (e.g., Base64 string, URL-encoded string, hexadecimal string, etc.)",
      "required": false
    }
  }
}
```

### Usage Instructions

# Data Format Encoder

Encode, decode, escape, and convert text between multiple data formats including Base64, URL encoding, HTML entities, JSON, hexadecimal, binary, ROT13, and Unicode.

## Actions

### encode-base64-encode
Encode plain text to Base64 format.

**Required fields:** `text` - the plain text to encode

**Example:**
```json
{
  "action": "encode-base64-encode",
  "text": "Hello world!"
}
```
Returns the Base64-encoded string (e.g., `SGVsbG8gd29ybGQh`).

---

### encode-base64-decode
Decode a Base64-encoded string back to plain text.

**Required fields:** `text` - the Base64-encoded string

**Example:**
```json
{
  "action": "encode-base64-decode",
  "text": "SGVsbG8gd29ybGQh"
}
```

---

### encode-url-encode
Percent-encode text for safe use in URLs.

**Required fields:** `text` - the text to URL-encode

**Example:**
```json
{
  "action": "encode-url-encode",
  "text": "hello world & goodbye"
}
```
Returns `hello%20world%20%26%20goodbye`.

---

### encode-url-decode
Decode a percent-encoded (URL-encoded) string back to plain text.

**Required fields:** `text` - the URL-encoded string

**Example:**
```json
{
  "action": "encode-url-decode",
  "text": "hello%20world%20%26%20goodbye"
}
```

---

### encode-html-entity-encode
Escape special HTML characters (e.g., `<`, `>`, `&`, `"`) into HTML entities.

**Required fields:** `text` - the text containing HTML characters

**Example:**
```json
{
  "action": "encode-html-entity-encode",
  "text": "<div class=\"main\">Hello & welcome</div>"
}
```
Returns `&lt;div class=&quot;main&quot;&gt;Hello &amp; welcome&lt;/div&gt;`.

---

### encode-html-entity-decode
Convert HTML entities back to their original characters.

**Required fields:** `text` - the HTML-entity-encoded string

**Example:**
```json
{
  "action": "encode-html-entity-decode",
  "text": "&lt;p&gt;Hello &amp; welcome&lt;/p&gt;"
}
```

---

### encode-escape-json
Escape special characters in text for safe embedding inside JSON strings (e.g., newlines, tabs, quotes).

**Required fields:** `text` - the text to JSON-escape

**Example:**
```json
{
  "action": "encode-escape-json",
  "text": "Line 1\nLine 2\tTabbed \"quoted\""
}
```
Returns `Line 1\\nLine 2\\tTabbed \\\"quoted\\\"`.

---

### encode-unescape-json
Convert JSON-escaped sequences back to their original characters.

**Required fields:** `text` - the JSON-escaped string

**Example:**
```json
{
  "action": "encode-unescape-json",
  "text": "Line 1\\nLine 2\\tTabbed \\\"quoted\\\""
}
```

---

### encode-text-to-hex
Convert text to its hexadecimal byte representation.

**Required fields:** `text` - the plain text to convert

**Example:**
```json
{
  "action": "encode-text-to-hex",
  "text": "Hello"
}
```
Returns `48656c6c6f`.

---

### encode-hex-to-text
Convert a hexadecimal string back to plain text. Spaces, colons, and hyphens between hex bytes are automatically removed.

**Required fields:** `text` - the hexadecimal string

**Example:**
```json
{
  "action": "encode-hex-to-text",
  "text": "48 65 6c 6c 6f"
}
```

---

### encode-text-to-binary
Convert text to its 8-bit binary representation (space-separated bytes).

**Required fields:** `text` - the plain text to convert

**Example:**
```json
{
  "action": "encode-text-to-binary",
  "text": "Hi"
}
```
Returns `01001000 01101001`.

---

### encode-binary-to-text
Convert an 8-bit binary string back to plain text. The binary string length must be a multiple of 8 bits.

**Required fields:** `text` - the binary string (spaces between bytes are optional)

**Example:**
```json
{
  "action": "encode-binary-to-text",
  "text": "01001000 01101001"
}
```

---

### encode-rot13-encode
Apply the ROT13 substitution cipher to text. ROT13 is its own inverse -- apply it again to decode.

**Required fields:** `text` - the text to encode/decode

**Example:**
```json
{
  "action": "encode-rot13-encode",
  "text": "Hello World"
}
```
Returns `Uryyb Jbeyq`. Applying ROT13 again to the result returns the original text.

---

### encode-unicode-escape
Convert Unicode characters to their escape sequences (e.g., `\uXXXX`).

**Required fields:** `text` - the text containing Unicode characters

**Example:**
```json
{
  "action": "encode-unicode-escape",
  "text": "Caf\u00e9 \u2603"
}
```

---

### encode-unicode-unescape
Convert Unicode escape sequences back to their original characters.

**Required fields:** `text` - the string containing `\uXXXX` escape sequences

**Example:**
```json
{
  "action": "encode-unicode-unescape",
  "text": "Caf\\u00e9 \\u2603"
}
```

---

## Common Workflows

- **Prepare text for a URL query parameter:** Use `encode-url-encode` to safely encode user input before appending it to a URL.
- **Embed user content in HTML:** Use `encode-html-entity-encode` to prevent XSS or rendering issues when inserting text into HTML.
- **Store or transmit binary data as text:** Use `encode-base64-encode` to convert binary content to a text-safe format, and `encode-base64-decode` to restore it.
- **Inspect raw byte values:** Use `encode-text-to-hex` or `encode-text-to-binary` to see the byte-level representation of any string.
- **Simple text obfuscation:** Use `encode-rot13-encode` to lightly obscure text (e.g., hiding spoilers). Apply it twice to get the original back.

## Important Notes

- All actions require the `text` field except `get_instructions`.
- Decoding actions will return an error if the input is not valid for the expected format (e.g., invalid Base64, non-hex characters, binary string not a multiple of 8 bits).
- Hex decoding automatically strips spaces, colons, and hyphens, so formats like `48:65:6c:6c:6f` or `48-65-6c-6c-6f` are accepted.
- ROT13 only rotates ASCII letters; digits, punctuation, and non-ASCII characters pass through unchanged.
- All text processing uses UTF-8 encoding.

### About The Developer

- Vendor name: Apoth3osis
- Website: apoth3osis.io

We build tools that enable AI agents to excel in the mathematical realm.

Our small team develops experimental and unique solutions in the AI arena, with a strong focus on modular computing for agentic applications and custom model deployment. We have handled projects for a variety of applications across many sectors, from algorithmic trading and financial analysis, to molecular simulations and predictions, to habitat and biodiversity monitoring and wildlife conservation.

### Frequently Asked Questions

No linked FAQs are currently available.

### Dependencies

This product has no public dependency products.