Encode text to Base64 — useful for data URIs, basic auth and APIs.
| Input | Output |
|---|---|
| Hello, World! | SGVsbG8sIFdvcmxkIQ== |
| foo | Zm9v |
| test | dGVzdA== |
No — it is an encoding, not encryption. Anyone can decode it; it just makes binary data text-safe.
= is padding to make the output length a multiple of 4.
Yes — input is UTF-8 encoded before conversion.