Base64 Encoder & Decoder
Encode UTF-8 text or file bytes as Base64, Base64URL or a data URL. Download decoded bytes locally.
Enabling local controls…
Encode UTF-8 text or file bytes in your browser. Standard Base64 uses +, / and = padding. Data URLs contain standard Base64.
A selected file takes precedence. Choose Encode for original bytes or Decode for an encoded UTF-8 file. Maximum original or decoded size: 256 KiB. Files stay on this device.
Result
Enter text, choose a file or load a sample.
How to use this tool
Hello, world!
SGVsbG8sIHdvcmxkIQ==
SGVsbG8sIHdvcmxkIQEncode the first line in standard mode to get the second. Enable URL-safe Base64 to get the third line without padding. Paste the result and select Decode with the same alphabet to recover the original text. Non-UTF-8 output appears as Hex. Download original bytes to recover the binary file. For larger files, use the file converter below.
Work with file bytes instead of text →
Usage notes updated: Base64 — RFC 4648 ↗
When not to use it
Base64 is encoding, not encryption; never use it to conceal a secret.