← all tools
Base64
Encode and decode without line wrapping — matching Android’s NO_WRAP, and tolerating input that has wrapping.
Result
Android has two Base64 modes and the difference only shows up when something breaks. DEFAULT wraps output at 76 characters; NO_WRAP does not. A wrapped string pasted somewhere that expects unwrapped is a silent corruption that surfaces later as a decode failure. This encodes the NO_WRAP way and decodes either. UTF-8 is handled properly, so accented characters and emoji survive — plain btoa() throws on those.