Base64 Encoder & Decoder
Toggle between encode and decode. Type or paste — the result updates instantly. Copy with one click.
Base64 output
SGVsbG8sIHdvcmxkIQ==
How it works
Encoding uses TextEncoder + btoa to produce standards-compliant Base64. Decoding parses the input as Base64 and decodes to UTF-8 text. Whitespace is forgiving in decode mode.
Frequently asked
- Is this binary-safe?
- Encoding handles any UTF-8 string correctly, including emoji and multi-byte characters. Pure binary file encoding requires file upload, which is on the roadmap.
- Why does my Base64 fail to decode?
- Common causes: missing padding (=, ==), URL-safe encoding using - and _ instead of + and /, or accidental whitespace. We tolerate whitespace and missing padding automatically.
- Is Base64 encryption?
- No. Base64 is encoding, not encryption. Anyone with the encoded string can decode it instantly. Use it for transport, not for secrecy.
Other generators
- Stopwatch
- Password Generator
- QR Code Generator
- Hex to RGB Converter
- Barcode Generator
- RGB to Hex Converter
- Hash Generator
- CSS Gradient Generator
- Lorem Ipsum Generator
- Random Word Generator
- Random Quote Generator
- Username Generator
- UUID Generator
- URL Encoder & Decoder
- Color Palette Generator
- Roman Numeral Converter
- Slug Generator
- Number to Words Converter
Popular calculators
Share
Popular converters
- Centimeters to incheslength
- Kilograms to poundsmass
- Millimeters to incheslength
- Pounds to kilogramsmass
- Celsius to fahrenheittemperature
- Kilometers to mileslength
- Inches to centimeterslength
- Meters to feetlength
- Fahrenheit to celsiustemperature
- Inches to feetlength
- Inches to millimeterslength
- Liters to US gallonsvolume