Base64 Encode
Convert text to Base64, decode Base64 back to readable text, and copy or download the result without sending data anywhere.
Base64 Encode and Decode
This Base64 tool converts plain text into Base64 and turns Base64 strings back into readable text. It is useful when you need to prepare data for APIs, inspect encoded values from logs, test request payloads, or move small snippets of data through text-only systems.
The conversion runs locally in your browser. The text you paste into the editor is not uploaded, stored, or sent to a server, so you can use the tool for quick checks without changing your workflow.
How to use
- Paste plain text or a Base64 value into the input editor.
- Choose Encode to create a Base64 string, or Decode to read an existing Base64 string.
- Check the output editor and status message. Invalid Base64 input is reported immediately when decoding fails.
- Use Copy for the clipboard, Download for a text file, or Clear to reset both editors.
What is Base64?
Base64 is a way to represent bytes as printable text. It uses letters, numbers, plus signs, slashes, and padding characters so binary data can travel through systems that expect ordinary text, such as JSON, HTML, email, configuration files, and command-line output.
Base64 is an encoding format, not encryption. Anyone can decode it if they have the string. It also increases the data size by roughly one third, so it is best for transport and embedding, not for compression or secrecy.
Input notes
Encoding supports normal text, including Unicode characters. When decoding, make sure the input is a complete Base64 string and does not include unrelated headers, labels, or extra text around the encoded value.
Example
The same value can be encoded and decoded back to its original text:
--- Plain Text --- Hello, World! --- Base64 Encoded --- SGVsbG8sIFdvcmxkIQ== --- Decoded Back --- Hello, World!
MCP integration
MCP (Model Context Protocol) lets AI agents and apps discover and run Coding.Tools utilities for repeatable conversions, formatting, hashing, and generation workflows.
MCP tool name: base64-encode
MCP endpoint: https://coding.tools/mcp
Call tools/list first. Each tool entry includes inputSchema, outputSchema, and examples so an AI agent or client can build valid arguments without guessing.
For tools/call, read result.content[0].text for the display value and result.structuredContent for machine parsing. Tool-level failures return isError: true; protocol failures return a JSON-RPC error.
Example tools/call request:
curl -s https://coding.tools/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "MCP-Protocol-Version: 2025-06-18" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"base64-encode","arguments":{"input":"Hello from Coding.Tools MCP"}}}'
Most text and data tools accept an input string plus optional options. Browser-only image tools are listed for discovery and return a web UI link when they need browser image APIs.