Base64 Encode/Decode
Encode or decode Base64 strings and files
Enable JavaScript to use the interactive tool.
How to use this tool · examples & limitations
Encode or decode Base64 strings and files.
Getting a reliable result
Start with a short valid snippet and inspect the formatted or transformed output before copying it into your project.
Worked example
The ASCII text Hello encodes as SGVsbG8=. Decode it to confirm the round trip. Base64 represents bytes as text; anyone can decode it, so it must not be used to conceal credentials.
Limitations to check
Formatting does not prove that a program is correct or secure. Run the result through your project's compiler and tests.
For network services, accounts and optional usage records, see our privacy policy.