baseconvert icon indicating copy to clipboard operation
baseconvert copied to clipboard

Convert between numerical systems

Base Convert - A library for easy conversion between numerical systems

Base Convert is an extensible JavaScript library to enable easy conversion between numerical systems, such as different bases (binary, decimal, hexadecimal) or roman numerals.

Goal: be able to convert numbers from and into all the world's different numerical systems.

Examples

Base(10, 2, "5.3")        // 101.0100110...
Base(10, "roman", "2598") // MMDXCVIII
Base(2, 13, "110110")     // 42

Demo

Either visit baseconvert.com or check out docs/demo.html.