Projects Personal Contact Rss

Arbitrary number base conversion. This script will convert between bases 2 to 62.
Please note that all bases up to base36 are case insensitive, e.g. A=a. However, from base37-62 'numbers' are case sensitive, e.g. A!=a. A=decimal 10, a=decimal 36.
New: The script is now able to convert real numbers (not just integers) to other bases, although we stop at 10 decimal places (because such fractions tend to be infinitely long). The conversion routines allow you to specify your own level of precision.

To enter a source number you can enter both the number and its base in the two input boxes on the left, or you can use base notation of base#number in the Input box and leave the base as blank or 0

Input:    ->    Output:
Base: Base:

The source code for the PHP base conversion functions are available at

All content © Paul Gregg, 1994 - 2019
Page last updated: 01 October 2014 10:05:54.
This site has been online since 5th October 2000
Previous websites live at various URLs since 1994