Install
openclaw skills install @agentpmt/binary-to-from-file-converterBinary To/From File Converter: Convert between base64, hex, and binary. Use when an agent needs binary to/from file converter, binary to from file converter, 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.
openclaw skills install @agentpmt/binary-to-from-file-converterLast updated: 2026-06-23.
If the current date is more than 7 days after the last updated date, reinstall this skill from skills.sh or ClawHub before relying on endpoints, schemas, setup steps, or examples.
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.
Convert data between base64, hexadecimal, and binary string representations, and convert files to/from base64 encoding.
Convert a base64-encoded string to hexadecimal.
Required fields:
action: "base64-to-hex"input: Base64-encoded stringExample:
{
"action": "base64-to-hex",
"input": "SGVsbG8gV29ybGQ="
}
Returns: { "encoding": "hex", "hex": "48656c6c6f20576f726c64", "size_bytes": 11 }
Convert a hexadecimal string to base64 encoding.
Required fields:
action: "hex-to-base64"input: Hexadecimal string (even number of characters, 0-9 and a-f)Example:
{
"action": "hex-to-base64",
"input": "48656c6c6f20576f726c64"
}
Returns: { "encoding": "base64", "base64": "SGVsbG8gV29ybGQ=", "size_bytes": 11 }
Convert a base64-encoded string to a binary (0s and 1s) string representation.
Required fields:
action: "base64-to-binary"input: Base64-encoded stringExample:
{
"action": "base64-to-binary",
"input": "SGk="
}
Returns: { "encoding": "binary", "binary": "01001000 01101001", "size_bytes": 2 }
Convert a binary string (0s and 1s) back to base64 encoding.
Required fields:
action: "binary-to-base64"input: Binary string of 0s and 1s (length must be a multiple of 8; spaces between bytes are allowed)Example:
{
"action": "binary-to-base64",
"input": "01001000 01101001"
}
Returns: { "encoding": "base64", "base64": "SGk=", "size_bytes": 2 }
Read a previously uploaded file and return its contents as a base64-encoded string.
Required fields:
action: "file-to-base64"file_id: The file ID of an uploaded fileExample:
{
"action": "file-to-base64",
"file_id": "abc123def456"
}
Returns: { "file_id": "abc123def456", "filename": "report.pdf", "content_type": "application/pdf", "size_bytes": 4096, "base64": "..." }
Decode a base64 string and save it as a file in cloud storage.
Required fields:
action: "base64-to-file"input: Base64-encoded file contentfilename: Name for the created file (e.g., "output.png")Optional fields:
content_type: MIME type for the file (default: "application/octet-stream"). Use the appropriate type, e.g., "image/png", "application/pdf".expiration_days: Number of days until the file expires, 1-7 (default: 7)Example:
{
"action": "base64-to-file",
"input": "iVBORw0KGgo...",
"filename": "screenshot.png",
"content_type": "image/png",
"expiration_days": 3
}
Returns: { "file_id": "...", "filename": "screenshot.png", "content_type": "image/png", "size_bytes": 2048, "signed_url": "https://...", "signed_url_expires_in": "..." }
file-to-base64 to get a file's base64 content, then share or embed it.base64-to-file to decode received base64 data back into a downloadable file.file-to-base64 then base64-to-hex or base64-to-binary to view raw byte contents of a file.file-to-base64 is 10 MB. Larger files cannot be returned inline.base64-to-file are stored in cloud storage and expire after the specified number of days (default 7).signed_url returned by base64-to-file provides a temporary download link for the created file.Binary To/From File Converter on AgentPMT.base64_to_binary, base64_to_file, base64_to_hex, binary_to_base64, file_to_base64, hex_to_base64.file-management, page: https://clawhub.ai/agentpmt/file-management; skills.sh: npx skills add AgentPMT/agent-skills --skill file-management)No categories or industry tags are published for this tool.
Complete generated action schema: ./schema.md.
Supported action count: 6.
x402 availability: not enabled for this product.
base64_to_binary (action slug: base64-to-binary): Convert a base64-encoded string to a binary (0s and 1s) string representation. Price: 10 credits. Parameters: input.base64_to_file (action slug: base64-to-file): Decode a base64 string and save it as a file in cloud storage with a signed download URL. Price: 10 credits. Parameters: content_type, expiration_days, filename, input, store_file.base64_to_hex (action slug: base64-to-hex): Convert a base64-encoded string to hexadecimal representation. Price: 10 credits. Parameters: input.binary_to_base64 (action slug: binary-to-base64): Convert a binary string (0s and 1s) back to base64 encoding. Price: 10 credits. Parameters: input.file_to_base64 (action slug: file-to-base64): Read a previously uploaded file from cloud storage and return its contents as a base64-encoded string. Maximum file size is 10MB. Price: 10 credits. Parameters: file_id.hex_to_base64 (action slug: hex-to-base64): Convert a hexadecimal string to base64 encoding. Price: 10 credits. Parameters: input.Use the compact schema above for ordinary calls. Before a new production integration, or whenever parameters, enum values, nested objects, outputs, or examples are unclear, fetch live details first.
agentpmt-tool-search-and-execution with action: "get_schema", and tool_id: "binary-to-from-file-converter".agentpmt-tool-search-and-execution with action: "get_instructions" and tool_id: "binary-to-from-file-converter", or call this product with action: "get_instructions" when the product tool is already selected.MCP schema lookup through the main AgentPMT MCP server:
{
"method": "tools/call",
"params": {
"name": "AgentPMT-Tool-Search-and-Execution",
"arguments": {
"action": "get_schema",
"tool_id": "binary-to-from-file-converter"
}
}
}
For live examples, keep the same MCP tool and use these arguments:
{
"action": "get_instructions",
"tool_id": "binary-to-from-file-converter"
}
Authenticated AgentPMT REST schema lookup body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_schema",
"tool_id": "binary-to-from-file-converter"
}
}
Authenticated AgentPMT REST live examples body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_instructions",
"tool_id": "binary-to-from-file-converter"
}
}
Product slug: binary-to-from-file-converter
Marketplace page: https://www.agentpmt.com/marketplace/binary-to-from-file-converter
../agentpmt-account-mcp-rest-api-setup to connect the main MCP server or REST API for an Agent Group where this tool is enabled.../what-is-agentpmt for marketplace, Agent Group, workflow, MCP, REST, and payment concepts.If those setup skills are not installed beside this product skill, use the downloads below.
Core AgentPMT setup skills:
openclaw skills install what-is-agentpmtnpx skills add AgentPMT/agent-skills --skill what-is-agentpmtopenclaw skills install agentpmt-account-mcp-rest-api-setupnpx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setupskills.sh install script:
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
MCP call shape after the main AgentPMT MCP server is connected:
{
"method": "tools/call",
"params": {
"name": "Binary-ToFrom-File-Converter",
"arguments": {
"action": "base64_to_binary",
"input": "example input"
}
}
}
Use the exact tool name returned by tools/list; the name above is the expected readable form.
Authenticated AgentPMT REST call body:
{
"name": "binary-to-from-file-converter",
"parameters": {
"action": "base64_to_binary",
"input": "example input"
}
}
Use the setup skill for the account connection details before making REST calls.
passed or success-style boolean, use it as the workflow gate.get_schema or get_instructions before retrying.base64_to_binary fails, preserve the request parameters and retry only after fixing schema, auth, or payment errors.what-is-agentpmt, page: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: npx skills add AgentPMT/agent-skills --skill what-is-agentpmt)agentpmt-account-mcp-rest-api-setup, page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup)