Base64 Encode & Decode

Encode text to base64 and decode base64 back to text

btoa(UTF-8(text))
Base64 output
SGVsbG8sIFdvcmxkIQ==
Input chars
13
Output chars
20
UTF-8 bytes
13
Input vs output lengthBase64 output is typically ~33% larger than the UTF-8 input.Encoded size20charsinput: 13 chars · 13 UTF-8 bytes