Encode text
Input
hello
Output
aGVsbG8=
Decode and encode Base64 from one screen.
Convert text, files, and Data URLs safely in your browser.
Switch between Encode, Decode, and Auto Detect, then choose Text or File input from the controls above.
Input data stays in your browser and is never uploaded.
Press Ctrl / Cmd + Enter to run conversion.
Input
hello
Output
aGVsbG8=
Input
data:text/plain;base64,SGVsbG8sIHdvcmxkIQ==
Output
Hello, world!
Use "Display as text (UTF-8)" first. If the decoded data is binary, switch to "Treat as binary (download)".
Yes. The tool automatically separates the data:*;base64, header and payload, and shows the MIME type.
No. Conversion runs entirely in your browser, and files are never uploaded.
Yes. Enable “Ignore whitespace and line breaks” to decode line-broken Base64.
Yes. Enable “Accept URL-safe Base64 (- and _)”.