MATH · FREE TOOL
Number base & code converter
Convert exact integers between bases 2–62, binary-reflected Gray code and 8421 BCD.
On-device processing · No account · No ads
Files and entered values are processed in your browser, without uploading them to Toolfred. Our tools do not automatically save your work or send it to embedded analytics.
Pages, libraries and shared reference files still download from our host. Downloads you save, browser recovery and hosting logs have separate retention. Local processing is not a guarantee of anonymity or secure deletion.
See where data goes →Your result
Illustrative preview · actual search results vary
{}255
How this tool works
An integer base changes the written representation of a value. For example, decimal 255 is FF in base 16 and 11111111 in base 2. Leading zeroes are omitted for integer conversion; the numeric value is exact within the input limit. Gray code uses n XOR (n shifted right by one). Decoding repeatedly XORs the shifted code. BCD encodes each decimal digit separately into four bits, so decimal 25 becomes 0010 0101 rather than binary 11001. Only BCD retains leading decimal zeroes.
Format references: NIST Dictionary of Algorithms · Gray code. Reviewed October 23, 2026.
Working inputs are held in this page and its temporary local worker. Downloads and clipboard copies persist separately; hosting request logs have their own retention. This tool does not certify data safety or compatibility with every application.