Encode and decode text in Base64 โ 100% local, no data sent
Base64 is an encoding scheme that converts binary data into a sequence of ASCII characters. It's commonly used to embed images inline in HTML/CSS (data:image/png;base64,...), to encode credentials in HTTP Basic Auth, and to include binary data in JSON or Firebase RTDB.
The URL-safe variant replaces the + and / characters with - and _, making the string safe to use in a URL without additional encoding.
Is Base64 a form of encryption?
No. Base64 is just an encoding โ anyone can decode it without keys. To actually encrypt data, use encryption tools like AES, or check out the HMAC-SHA256 page.
Why is Base64 longer than the original?
Base64 uses 6 bits per character instead of the standard 8, so every 3 original bytes become 4 Base64 characters โ roughly a 33% size increase.
This tool encodes and decodes text or files to Base64, with support for URL-safe Base64 and image preview, processing everything locally in your browser.
No, Base64 is a reversible encoding with no key: anyone can decode it instantly. It should not be used to protect sensitive data, only to represent binary data as text.
The standard version uses the characters + and / which can cause problems if placed directly in a URL; the URL-safe version replaces these characters with - and _ so it can be used without extra encoding in URL parameters.
Yes, the tool also supports encoding files (with a preview for images), in addition to encoding/decoding plain text.