AgentPMT
Data Format Encoder

Data Format Encoder

Function

Available ActionsEach successful request consumes credits as outlined below.

encode-base64-encode5crencode-base64-decode5crencode-url-encode5crencode-url-decode5crencode-html-entity-encode5crencode-html-entity-decode5crencode-escape-json5crencode-unescape-json5crencode-text-to-hex5crencode-hex-to-text5crencode-text-to-binary5crencode-binary-to-text5crencode-rot13-encode5crencode-unicode-escape5crencode-unicode-unescape5cr

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.

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

Actions(15)

encode-base64-encode5cr1 param(1 required)

Encode plain text to Base64 format.

Encode plain text to Base64 format.

textrequiredstring

The plain text to encode to Base64.

encode-base64-decode5cr1 param(1 required)

Decode a Base64-encoded string back to plain text.

Decode a Base64-encoded string back to plain text.

textrequiredstring

The Base64-encoded string to decode.

encode-url-encode5cr1 param(1 required)

Percent-encode text for safe use in URLs (query strings, path segments).

Percent-encode text for safe use in URLs (query strings, path segments).

textrequiredstring

The text to URL-encode.

encode-url-decode5cr1 param(1 required)

Decode a percent-encoded (URL-encoded) string back to plain text.

Decode a percent-encoded (URL-encoded) string back to plain text.

textrequiredstring

The URL-encoded string to decode.

encode-html-entity-encode5cr1 param(1 required)

Escape special HTML characters into HTML entities (e.g., < becomes &lt;).

Escape special HTML characters into HTML entities (e.g., < becomes &lt;).

textrequiredstring

The text containing HTML characters to escape.

encode-html-entity-decode5cr1 param(1 required)

Convert HTML entities back to their original characters.

Convert HTML entities back to their original characters.

textrequiredstring

The HTML-entity-encoded string to decode.

encode-escape-json5cr1 param(1 required)

Escape special characters in text for safe embedding inside JSON strings (newlines, tabs, quotes, backslashes).

Escape special characters in text for safe embedding inside JSON strings (newlines, tabs, quotes, backslashes).

textrequiredstring

The text to JSON-escape.

encode-unescape-json5cr1 param(1 required)

Convert JSON-escaped sequences back to their original characters.

Convert JSON-escaped sequences back to their original characters.

textrequiredstring

The JSON-escaped string to unescape.

encode-text-to-hex5cr1 param(1 required)

Convert text to its hexadecimal byte representation.

Convert text to its hexadecimal byte representation.

textrequiredstring

The plain text to convert to hexadecimal.

encode-hex-to-text5cr1 param(1 required)

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

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

textrequiredstring

The hexadecimal string to convert to text.

encode-text-to-binary5cr1 param(1 required)

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

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

textrequiredstring

The plain text to convert to binary.

encode-binary-to-text5cr1 param(1 required)

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

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

textrequiredstring

The binary string to convert to text (spaces between bytes are optional).

encode-rot13-encode5cr1 param(1 required)

Apply the ROT13 substitution cipher to text. ROT13 is its own inverse — apply it again to decode.

Apply the ROT13 substitution cipher to text. ROT13 is its own inverse — apply it again to decode.

textrequiredstring

The text to encode with ROT13.

encode-unicode-escape5cr1 param(1 required)

Convert Unicode characters to their escape sequences (\uXXXX format).

Convert Unicode characters to their escape sequences (\uXXXX format).

textrequiredstring

The text containing Unicode characters to escape.

encode-unicode-unescape5cr1 param(1 required)

Convert Unicode escape sequences back to their original characters.

Convert Unicode escape sequences back to their original characters.

textrequiredstring

The string containing \uXXXX escape sequences to convert.

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

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

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How does an external agent use this tool?

Agent prompt

Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 694de13fecea2b5619a17bdb ("Data Format Encoder"). Then call the same tool with action 'call_tool', tool_id 694de13fecea2b5619a17bdb, and the parameters needed for my request.

Looking for help integrating AI into your business? Set up a free consultation.