Base64 Encoding & Decoding Online
Encode text to Base64 or decode a Base64 string back to readable text.
Built and tested by Muhammad Irfan Liaqat · Updated
Base64 Encode/Decode: key facts
- Encodes text to Base64 and decodes Base64 back to text as you type
- Handles UTF-8, so accented letters, non-Latin scripts and emoji round-trip correctly
- Uses the standard Base64 alphabet with + and /; URL-safe Base64 must be converted first
- Text only: to encode an image or other file, use Image to Base64
What Base64 encoding does
Base64 turns data into text made of 64 safe characters: A–Z, a–z, 0–9, + and /, with = used as padding at the end. This tool encodes any text, including accented letters, emoji and non-Latin scripts, to Base64 using UTF-8, and decodes Base64 back to readable text.
Base64 is used wherever only plain text can travel: HTTP Basic authentication headers, data URIs, email attachments and binary values stored in JSON. It makes data about 33% larger, because every 3 bytes become 4 characters. It is an encoding, not encryption: anyone can decode it, so never rely on it to hide passwords or keys. To convert an image, use the Image to Base64 tool.
How to encode or decode Base64
- 1Paste or type text, or a Base64 string, into the input box
- 2Click Encode to convert text to Base64, or Decode to convert Base64 to text
- 3Check the result in the output box
- 4Click Copy to copy it