

Binary To/From File Converter
Core Utility
Available ActionsEach successful request consumes credits as outlined below.
base64_to_hex10crhex_to_base6410crbase64_to_binary10crbinary_to_base6410crfile_to_base6410crbase64_to_file10cr
Details
Versatile data transformation utility that enables seamless conversion between various binary encoding formats and file storage operations. This function supports six core conversion actions: base64-to-hex, hex-to-base64, base64-to-binary, binary-to-base64, file-to-base64, and base64-to-file. For encoding transformations, users simply provide an input string in the source format and receive the converted output along with metadata such as byte size. The file-based operations integrate with cloud storage, allowing users to either extract base64-encoded content from existing stored files or create new files from base64 data with customizable filenames, MIME types, and expiration periods ranging from one to seven days. The function handles files up to 10MB for inline base64 returns and automatically generates signed URLs for secure file access. With built-in validation for all encoding formats and budget-based access controls, the File Binary Converter provides a reliable foundation for any workflow requiring binary data manipulation or format interoperability.
Use Cases
Encoding image or document uploads for API transmission in multi-agent pipelines, decoding base64 email attachments and converting them to downloadable files, analyzing binary file signatures by converting file headers to hexadecimal for format detection, preparing binary payloads for webhook integrations that require hex or base64 encoding, converting cryptographic hashes between hex and base64 for cross-system compatibility, extracting and re-encoding embedded binary assets from JSON or XML data feeds, building file export workflows that package generated content into downloadable cloud-stored files, debugging binary protocols by converting raw data to human-readable binary strings, migrating encoded data between systems with different encoding standards, creating temporary secure file links from base64 data for sharing in automated notification workflows
Actions(6)
base64_to_hex10cr1 param(1 required)Convert a base64-encoded string to hexadecimal representation.
base64_to_hex10cr1 param(1 required)Convert a base64-encoded string to hexadecimal representation.
inputrequiredstringBase64-encoded string to convert to hex.
hex_to_base6410cr1 param(1 required)Convert a hexadecimal string to base64 encoding.
hex_to_base6410cr1 param(1 required)Convert a hexadecimal string to base64 encoding.
inputrequiredstringHexadecimal string to convert to base64 (even number of characters, 0-9 and a-f).
base64_to_binary10cr1 param(1 required)Convert a base64-encoded string to a binary (0s and 1s) string representation.
base64_to_binary10cr1 param(1 required)Convert a base64-encoded string to a binary (0s and 1s) string representation.
inputrequiredstringBase64-encoded string to convert to binary representation.
binary_to_base6410cr1 param(1 required)Convert a binary string (0s and 1s) back to base64 encoding.
binary_to_base6410cr1 param(1 required)Convert a binary string (0s and 1s) back to base64 encoding.
inputrequiredstringBinary string of 0s and 1s (length must be a multiple of 8; spaces between bytes are allowed).
file_to_base6410cr1 param(1 required)Read a previously uploaded file from cloud storage and return its contents as a base64-encoded string. Maximum file size is 10MB.
file_to_base6410cr1 param(1 required)Read a previously uploaded file from cloud storage and return its contents as a base64-encoded string. Maximum file size is 10MB.
file_idrequiredstringFile ID of the uploaded file to read.
base64_to_file10cr5 params(2 required)Decode a base64 string and save it as a file in cloud storage with a signed download URL.
base64_to_file10cr5 params(2 required)Decode a base64 string and save it as a file in cloud storage with a signed download URL.
inputrequiredstringBase64-encoded file content to decode and save.
filenamerequiredstringName for the created file (e.g., 'output.png').
content_typestringMIME type for the created file (e.g., 'image/png', 'application/pdf').
Default:
application/octet-streamexpiration_daysintegerDays until file expires (1-7).
Default:
7Range: 1 - 7
store_filebooleanStore output as a file in cloud storage (recommended for file management access).
Default:
trueFrequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
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\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
Agent prompt
Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 695c3605767df5adfd9bc86d ("Binary To/From File Converter"). Then call the same tool with action 'call_tool', tool_id 695c3605767df5adfd9bc86d, and the parameters needed for my request.
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.
Dependencies
1 dependencies will be automatically added when you enable this product.






