Base64 Text Encoder/Decoder
100% PrivateDeveloper ToolsEncode text to Base64 or decode Base64 back into readable text.
Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.
- 1Paste plain text, or a Base64 string.
- 2Press Encode to Base64, or Decode from Base64.
- 3Read validation errors if the input is not real Base64 or does not decode to UTF-8 text.
- 4Copy the result.
Worked example
A classic test string
Encoding "Hello, World!" gives: SGVsbG8sIFdvcmxkIQ== And Unicode works too: "café" encodes to Y2Fmw6k= and decodes back to café exactly.
- Base64 is an encoding, not encryption. Anyone who sees the string can decode it; never use it to protect secrets.
- Decoding accepts standard Base64 and the URL-safe variant (with - and _), with or without padding.
- If the decoded bytes are not valid UTF-8 text, the tool says so instead of printing mojibake. Use a file tool for binary data.
- Output is about a third larger than the input, which is the normal Base64 overhead.
Base64 works in groups of four characters. The = signs are padding that mark how many bytes were in the final partial group.
About this tool
The Base64 Text Encoder/Decoder converts text to and from Base64, the encoding used to carry binary-looking data through text-only channels like JSON, email and data URIs. It is fully Unicode safe, so accented characters, emoji and non-Latin scripts survive the round trip intact.
Related tools
URL Encoder/DecoderPercent-encode text so it travels safely inside a web address, or decode it backDeveloper ToolsOpenHTML Entity Encoder/DecoderEncode special characters into safe HTML entities, or decode entities back into textDeveloper ToolsOpenJWT DecoderDecode a JSON Web Token and read its header and payload as plain JSON, with expiry timesDeveloper ToolsOpenBase64 Image Encoder/DecoderTurn an image into a Base64 data URL for HTML or CSS, or decode one back to an imageImage ToolsOpen
Advertisement
Part of Ovatly's free tools in Developer Tools.