About the Base64 Encoder
Encode UTF-8 text or any file as Base64. Images produce a ready-to-use data URL for HTML and CSS.
How does the Base64 Encoder work?
Base64 turns any bytes into 64 safe characters (A–Z, a–z, 0–9, + and /). Every 3 bytes become 4 characters, so encoded data is about 33% larger. Text is first converted to UTF-8 bytes, so accented letters and emoji encode correctly. The URL-safe variant swaps + and / for - and _ so the result can go in URLs and filenames.
Example
Hello, world! encodes to SGVsbG8sIHdvcmxkIQ==. The == at the end is padding, added because 13 bytes isn’t a multiple of 3.