← All tools

Base64 encoder and decoder

Encode text or a local file, or decode Base64 back to bytes.

Your input stays in this browser.

The filename is kept only for your download. No upload.

Your result

Choose text or a file

Text mode uses UTF-8. File mode encodes the original bytes without treating them as text. URL-safe replaces the plus and slash characters with a hyphen and underscore. Decoded files can be saved without opening them. For a byte-by-byte view of text, inspect its binary, decimal and hexadecimal values.

A worked example

Tool Octopus encodes to VG9vbCBPY3RvcHVz. Base64 is a representation, not encryption; anyone with the text can decode it.

Before you use the result

A decoded byte sequence may not be valid UTF-8. Use Download decoded file to retain those bytes. Keep the correct filename extension when saving a file.

Byte encodings and Morse timing