Base64 Encode/Decode

Convert between plain text and Base64

Docs

24 chars
Input16 chars
Output
24 chars
1
RGV2VG9vbHMgVG9vbGJveA==

使用说明

Encode text to and decode from Base64, with a URL-safe mode.

Encode

Convert text into a Base64 string.

Decode

Restore Base64 back to the original text.

URL-safe

Replace + and / with - and _, and drop the = padding, suitable for URL parameters.

Note

Base64 is encoding, not encryption—do not treat it as a secret. Decoding a non-standard string raises an error.