Base64 Encoder
cross-browser testing tools
World's simplest online base64 encoder for web developers and programmers. Just paste your textual data in the form below, press the Base64 Encode button, and you'll get base64-encoded data. Press a button – get base64. Works with Unicode and UTF8 strings. No ads, nonsense, or garbage.
51K
Announcement: We just launched Online Unicode Tools – a collection of browser-based Unicode utilities. Check it out!
Want to base64 decode?
Use the base64 decoder tool!
Using a Base-64 Encoder in Cross-browser Testing
A base-64 encoder is very useful if you're doing cross-browser testing. When writing unit tests, you often have to load binary data as the input or produce binary data as the output. The base-64 encoding is made exactly for this use case. You can encode binary data as base-64 and then put them in your tests cases. Then the test harness can decode base-64 to get binary bytes and compare them with the expected result. Base-64 encoder is also useful for moving files between servers through the clipboard. You can save the file as base-64 in the clipboard, then go to another server, paste it from the clipboard and decode it. Another use case is hiding text (such as solutions or spoilers) from viewing in forums. You can encode the hidden text to base-64, share it on a forum, and then anyone who wants to read it will have to use a base-64 decoder to read your message.
Looking for more web developer tools? Try these!
Text Columns to Rows Converter
Text Rows to Columns Converter
Text to HTML Entities Converter
UNIX time to UTC time Converter
UTC time to UNIX time Converter
Seconds to Human Readable Time
Binary Bitwise NAND Calculator
Binary Bitwise XNOR Calculator
Binary Bit Rotator to the Left
Binary Bit Rotator to the Right
Text Character Rotator to the Left
Text Character Rotator to the Right
Number of Letters in Text Counter
Number of Words in Text Counter
Number of Lines in Text Counter
Number of Paragraphs in Text Counter
Decimal to Scientific Converter
Scientific to Decimal Converter
Celsius to Fahrenheit Converter
Pro tip: You can use ?input=text query argument to pass text to tools.