- Input Data
- File Data
click or drag file to here
Related Tools
Online BaseN encoding and decoding tool, supporting BaseN encoding and decoding of data such as string, hex, base64, files, etc., supporting algorithms such as base2, base8, base16, base32, base64, base58, base85, base91, base100, etc. This tool also supports custom algorithms.
-
Input Data : Manually input text data, or open text data to calculate BaseN encoding or
decoding.
- Open : Open the local file and read its contents as text using UTF-8 encoding. Note: Open files are always read as text using UTF-8 encoding. The maximum supported file size for opening is 20 MiB.
- Download : Download the current input data or BaseN content, and use UTF-8 encoding for the downloaded file.
-
Input Format : The format of input content, this tool supports the following input
content formats:
- String : The input content is a string, which will be converted into a byte array using the selected character set and then BaseN encoded.
- Binary : The input content is a binary string, for example 0101000101010001 .
- Hex : The input content is a hexadecimal string, for example 0123456789ABCDEF .
- Base64 : The input content is a Base64 string.
- Charset : When the input format is String, use the selected character set parameters to convert the string to a byte array. Suggest using the UTF-8 character set. If a different character set is selected, the data will be processed through an API to support the conversion of strings<->byte arrays, the maximum length for inputting text or BaseN content at this time is 100,000.
- File Data : Open the local file, read the file content as binary byte data, and calculate the BaseN encoding or decoding of the binary data in the file. The maximum supported file size for opening is 20 MiB.
- Algorithm : Select the algorithm used for BaseN encoding and decoding, this tool supports Base2, Base8, Base16, Base32, Base32Hex, Base32WordSafe, Base64, Base64URL, Base58, Base85Ascii85, Base85Z85, Base85RFC1924, Base91, Base100, and custom algorithms.
-
Custom Algorithm Parameters : If select a custom algorithm, the following parameters can be
set:
-
Algorithm Type : Select the type of custom algorithm. This tool supports the
following two types of custom algorithms:
- Bit Split : Support custom algorithms with alphabet lengths of 2, 4, 8, 16, 32, 64, and 128, to input data according to Divide the bit lengths of 1, 2, 3, 4, 5, 6, and 7 and map them to the corresponding characters in the alphabet. The pre-defined base2, base8, base16, base32, and base64 in this tool are all implemented using this algorithm.
- Long Divisions : It encodes octet arrays by doing long divisions on all significant digits in the array, creating a representation of that number in the new base. Then for every leading zero in the input (not significant as a number) it will encode as a single leader character. This is the first in the alphabet and will decode as 8 bits. The other characters depend upon the base. For example, a base58 alphabet packs roughly 5.858 bits per character. This means the encoded string 000f (using a base16, 0-f alphabet) will actually decode to 4 bytes unlike a canonical hex encoding which uniformly packs 4 bits into each character. While unusual, this does mean that no padding is required and it works for bases like 43.
- Alphabet : The alphabet encoded and decoded by BaseN. The length limit of the alphabet is the alphabet length supported by the algorithm type. Each character in the alphabet cannot be repeated, nor can it be included in the aligned characters filled in.
- Padding Char : The custom algorithm for bits split supports this parameter, which requires filling in a character to align the encoded data. For example, Base64 encoding uses = as the alignment character.
-
Algorithm Type : Select the type of custom algorithm. This tool supports the
following two types of custom algorithms:
-
The predefined algorithm uses the following alphabet and alignment characters:
Algorithm Alphabet Padding Char