How to use
Choose Encode to convert text into Base64, or Decode to turn a Base64 string back into text. Paste or type the input in the box and submit. The calculator converts text to UTF-8 bytes before encoding, so it can handle non-ASCII characters such as accented letters and many symbols. For example, the text “Hello, world!” encodes to SGVsbG8sIHdvcmxkIQ==. Decoding requires valid Base64 data representing UTF-8 text; malformed Base64 or invalid UTF-8 is reported instead of being silently changed.
What the result means
Base64 is a binary-to-text encoding, not encryption or password protection. It makes bytes representable using a restricted ASCII alphabet, often for data transport or embedding. Anyone who receives the encoded string can decode it, so never use Base64 to conceal secrets. The output is longer than the original binary data because each 3-byte group becomes 4 characters, plus any padding. This tool works locally in the browser and does not upload the text to a server.
Further reading: IETF — RFC 4648: Base64 Data Encodings · MDN — Window.btoa() · MDN — Window.atob().
Related calculators