https://github.com/zamicol/baseconverter
Zamicol's Base Converter - Convert arbitrary bases with arbitrary alphabets.
https://github.com/zamicol/baseconverter
base-conversion base128 base16 base256 base58 base64 base65536 base85 base91 conversion converter coze decimal decimal-to-hexadecimal diceware diceware-password dnd-dice dozenal hex vigesimal
Last synced: about 2 months ago
JSON representation
Zamicol's Base Converter - Convert arbitrary bases with arbitrary alphabets.
- Host: GitHub
- URL: https://github.com/zamicol/baseconverter
- Owner: zamicol
- License: bsd-3-clause
- Created: 2019-11-23T11:10:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-28T22:30:35.000Z (4 months ago)
- Last Synced: 2025-02-09T02:35:46.908Z (3 months ago)
- Topics: base-conversion, base128, base16, base256, base58, base64, base65536, base85, base91, conversion, converter, coze, decimal, decimal-to-hexadecimal, diceware, diceware-password, dnd-dice, dozenal, hex, vigesimal
- Language: HTML
- Homepage: https://convert.zamicol.com
- Size: 1.47 MB
- Stars: 26
- Watchers: 5
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
https://convert.zamicol.com/
# BaseConverter
Zamicol's Base ConverterIf your project needs to do base conversion, use [`base_convert.js`](base_convert.js).
BaseConverter is a generalized, number first converter. This converter treats
input and output as numbers and uses the iterative divide by radix conversion
method. This method is suitable for arbitrary bases, character sets, and
alphabet lengths.Surprisingly, I couldn't find a converter online that met my needs, so I built
this. Other projects had limitations on alphabet characters, alphabet length,
input/output length, or were designed for specific encoding.Padding can be applied according to bytes, nibbles, or any other bucket size.
This converter is alphabet agnostic for input and output and has no limitations
on alphabets starting with 0, special or repeating characters, or is unable to
be divided evenly.