Base122 Encoder And Decoder
Encode a string of text as Base122 Unicode text, or decode Base122 text back into standard text.
What is Base122?
Base122 is Kevin Albertson's experimental UTF-8 binary-to-text encoding. It avoids reserved values such as null, newline, carriage return, double quote, ampersand, and backslash by using a compatible alternate form for those cases.
This tool is intended for data compatible with Kevin Albertson's published Base122 format. Decoding rejects malformed Base122 text and text that cannot be recovered as valid UTF-8.
Base122 is different from Base64, basE91, Base92, raw UTF-8 text, and Unicode display alphabets. Because it is experimental, use the same published format on both sides instead of mixing it with look-alike encodings.
Base122 is an encoding, not encryption, compression, signing, authentication, or privacy protection. It may be compact in UTF-8 bytes, but it is experimental and should be verified against the same algorithm before exchanging data with another tool.
Unicode and transport cautions
Base122 output is Unicode text that can include C0 control characters, non-ASCII code points, and leading or trailing spaces. Preserve the exact encoded string when decoding; trimming whitespace, normalizing Unicode, or copying through a system that hides control characters can change the value.
Fonts, copy and paste, JSON escaping, HTML attributes, Markdown processors, SMS, social networks, databases, old browsers, source code editors, command lines, terminals, and logging systems may transform, reject, escape, hide, or split the encoded text.
Do not assume Base122 is safe for URLs, source code literals, shell commands, ASCII-only protocols, form fields that strip controls, or systems that normalize or sanitize text. If the target system needs printable ASCII, use Base64, Base64url, Base32, Base58, or another encoding designed for that transport.