Search for a tool
Base 92 Encoding

Tool for decoding or encoding with Base 92. Base 92 code allows binary information to be stored in ASCII format with minimal data loss.

Results

Base 92 Encoding -

Tag(s) : Character Encoding

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Base 92 Encoding' tool for free! Thank you!

Base 92 Encoding

Base 92 Decoder

 








See also: Base91 Encoding

Base 92 Encoder

 

Answers to Questions (FAQ)

What is Base 92? (Definition)

Base 92 is a data encoding system that uses 92 printable ASCII characters to represent information. This system allows data to be encoded more efficiently than more common encoding bases like Base64 or Base85.

What characters are used in Base 92?

The 92 character alphabet used in Base 92 is indexed as follows:

(empty)~9+19529?39I49S59]69h79r89|
0!10,20630@40J50T60^70i80s90}
1#11-21731A41K51U61_71j81t
2$12.22832B42L52V62a72k82u
3%13/23933C43M53W63b73l83v
4&14024:34D44N54X64c74m84w
5'15125;35E45O55Y65d75n85x
6(16226<36F46P56Z66e76o86y
7)17327=37G47Q57[67f77p87z
8*18428>38H48R58\68g78q88{

In practice, only 91 signs are used in basic calculations, the 92nd (the tilde ~) is only used to indicate an empty string.

How to encode data in Base 92?

To encode data in Base 92, cut the data into 13-bit blocks to make 2 base 91 characters (yes 91 and not 92).

Example: dCode is written in binary (ASCII) 0110010001000011011011110110010001100101
Blocking of 13 bits gives 0110010001000,0110110111101,1001000110010,1
The converting 0110010001000 (base 2) gives ' 3208' (base 10) or 35×91+23. Character 35 of base 91 is E and character 23 is 9 whose block is coded E9.

Complete the last block with 0 on the right. Pad to 6 bits if the block contained 6 bits or less, otherwise pad to 13 bits.

Example: The last block 1 (length 1 bit) is completed to 100000 (completed over 6 bits) or 32 in base 10, and symbol 32 is B.
The complete coded message is E9H]U3B

How to decode Base 92?

For each pair of characters, note the value of each symbol in the Base 92 alphabet. Multiply the first by 91 and add them.

Example: Decode 9A2?VBWl by splitting it into pairs 9A 2? VB Wl. The first character 9 has the index 23, and A the code 31. The calculation is 23×91+31=2124.

For each number obtained, convert it to binary, completing it if necessary on the left to obtain 13 bits.

Example: 2124 in base 10 corresponds to 100001001100 in binary, as this number is only 12 bits, add an initial zero or 0100001001100

The binary sequence obtained (by concatenation of 13-bit numbers) corresponds to the plain message. If the message was originally encoded in 8-bit ASCII, then each byte corresponds to an ASCII character.

Example: The binary sequence is 01000010,01100001,01110011,01100101,00111001,00110010 or the 6 Base92 characters

How to recognize a Base 92 ciphertext? (Identification)

The message is composed of the 91 characters of the Base92 alphabet.

The character ~ appears alone or does not appear.

If the message length is odd, then the last character can only be among the first 64 characters of the alphabet.

Why use base 91?

Each 13-bit block can encode 2^13 = 8192 values, while 2 base 91 characters encode 91^2=8281 values. The encoding loss is therefore minimized for an alphabet of 91 symbols.

Source code

dCode retains ownership of the "Base 92 Encoding" source code. Except explicit open source licence (indicated Creative Commons / free), the "Base 92 Encoding" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Base 92 Encoding" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Base 92 Encoding" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

Cite dCode

The copy-paste of the page "Base 92 Encoding" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Base 92 Encoding on dCode.fr [online website], retrieved on 2024-12-03, https://www.dcode.fr/base92-encoding

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Base 92 Encoding' tool for free! Thank you!


https://www.dcode.fr/base92-encoding
© 2024 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.
 
Feedback