Encode text or files into Base64, or decode a Base64 string into readable text in your browser.
The ASCII text Hello encodes to SGVsbG8=. A JWT uses Base64url, which has different alphabet and padding conventions.
Base64 is encoding, not encryption, and generally increases data size. Binary bytes are not necessarily valid UTF-8 text. Do not assume standard Base64 and Base64url are interchangeable.
The tool's browser code handles entered text or selected files locally. Optional URL imports and external resources can make network requests. This website also uses third-party scripts, including analytics and advertising. Read the privacy policy and use sample data when testing sensitive workflows.
Found a problem? Report a tool issue with the browser version and steps to reproduce it. Avoid sending private document content or credentials.
No. Anyone can decode it. It is a way to represent bytes as text, not a method for protecting secrets.
The data may be binary or use a different text encoding. Use the correct output mode and character encoding.
Base64 represents three input bytes using four encoded characters, plus any required padding.