ToolBuddy
In Browser

Number Base Converter

Convert integers between binary, octal, decimal, and hexadecimal. Uses BigInt so large IDs and bit masks still round-trip. All math is local. There is no integer-conversion API.

Runs in your browser. Nothing is uploaded.

From
To

0 characters · 0 lines

0 characters · 0 lines

About this tool

Convert integers between binary, octal, decimal, and hexadecimal using BigInt, so values larger than 32-bit still round-trip. Hex input may include a 0x prefix; underscores and spaces are ignored.

How to use: paste a number, pick From and To bases, copy. Switch swaps the bases and feeds the output back in. Invalid digits for the source base show an error instead of a wrong value.

Example: 255 in decimal is ff in hex and 11111111 in binary. Useful for bit masks, color-ish integers, and permission flags. This is not IEEE float conversion.

Math is local. Related: hex converter for UTF-8 text rather than integers, IPv4 converter for dotted addresses. After load, converting works offline.

Related Convert tools