Search for a tool
Base91 Encoding

Tool for encryption/decryption in Base91, an encoding based on 91 ASCII characters that limits the size of the encoded data.

Results

Base91 Encoding -

Tag(s) : Character Encoding

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!

Thanks to your feedback and relevant comments, dCode has developed the best 'Base91 Encoding' tool, so feel free to write! Thank you!

# Base91 Encoding

## Base 91 Decoder

 Results format ASCII (printable) characters Hexadecimal 00-7F-FF Decimal 0-127-255 Octal 000-177-377 Binary 00000000-11111111 Integer number File to download

## Base 91 Encoder

### What is Base91 encoding? (Definition)

Base91 (or BasE91) is an alternative to base64 but with an expanded alphabet to 91 characters: the 94 printable ASCII characters (from 0x21 to 0x7E) omitting -: dash (0x2D), \: backslash (0x5C) and ': apostrophe (0x27). It allows any binary data to be encoded into a character string composed only of printable characters (and therefore transmissible via text messaging, etc.)

### How to encrypt using Base91 cipher?

Base91 encoding splits data into 13-bit binary packets (ie 2 ^ 13 = 8192 values) which are then encoded in 2 letters of the alphabet (which contains 91 characters and 91 ^ 2 = 8281).

Example: DCODE string is coded xJ,Jc,A in Base91

The symbols used by the base are:

0 1 2 3 4 5 6 7 8 9 10 11 12 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 ! # \$ % & ( ) * + , . / : ; < = > ? @ [ ] ^ _ ` { | } ~ "

### How to decrypt Base91 cipher?

The decryption performs the inverse conversion to base 91.

To simplify, the message is split into groups of 2 letters which are converted into 13-bit data. The message is then read with the original encoding (ASCII or Unicode).

Example: The message encoded in Base 91 xJ,Jc,A is decoded in DCODE.

### How to recognize BasE91 ciphertext?

The message is composed only of printable ASCII characters (except dash, backslash and apostrophe) that is 91 characters maximum.

Base91 encoded messages are on average 23% longer than the original message.

The author writes his code basE91 (with a capital E)

### When was Base91 invented?

Joachim Henke claims it was invented in 2005, see here (link)

## Source code

dCode retains ownership of the "Base91 Encoding" source code. Except explicit open source licence (indicated Creative Commons / free), the "Base91 Encoding" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or the "Base91 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 "Base91 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 "Base91 Encoding" or any of its results, is allowed as long as you cite dCode!
Cite as source (bibliography):
Base91 Encoding on dCode.fr [online website], retrieved on 2022-08-08, https://www.dcode.fr/base-91-encoding

## Need Help ?

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