Base64 Encoder & Decoder

Encode and restore UTF-8 text.

View result ↓
01  InputUpdates as you type
02  ResultOn your device
Enter a value to see the result.

On your device

How to use

Paste text and choose a direction. Decoding ignores whitespace and line breaks. Uses standard Base64 with = padding.

Good to know

Base64 is not encryption. Only UTF-8 text is supported, including emoji. Binary files and URL-safe Base64 are not supported.

Worked examples

Input

Text → encoded: Hello 👋

Expected result

SGVsbG8g8J+Riw==

Input

Encoded → text: SGVsbG8g8J+Riw==

Expected result

Hello 👋

Base64 text encoding and supported input

Encoding converts text to UTF-8 bytes and then standard Base64. Hello becomes SGVsbG8=, and non-Latin letters and emoji are supported. Base64 changes the representation of data; it is reversible and is not encryption.

Decoding ignores whitespace but requires the standard alphabet with + and / and correct = padding when needed. URL-safe Base64 with - or _, and unpadded forms that need padding, are not supported. Decoded bytes must be valid UTF-8 text; arbitrary binary files are not supported.