Base64 encoder and decoder

Convert text or files to Base64, or decode them back.

File and Data URL
Drop or choose a small file to encode it directly into the output.
Output
Usage and limits

Strict mode rejects whitespace, invalid characters and incomplete padding. Lenient mode normalizes input and restores padding.