David SchneiderFollow


Base-64 encoding is a binary-to-text encoding scheme that is popular in HTML applications since it encodes to relatively safe characters (A-Z, a-z, 0-9, +, /) that can survive all sorts of transmission media. However, it is quite inefficient, expanding every 3 bytes of input data to 4 characters of output data, an expansion in data size of 33%. This disclosure describes base-116 encoding, which, by encoding every 6 bytes of input data to 7 characters of output data, expands the input by only 16.67%. Base-116 encoding is very efficient in its use of codepoint space, and it can be efficiently encoded and decoded using floating-point arithmetic of JavaScript.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.