HTML to Markdown
Instantly convert HTML to Markdown with one click. Save and share the Markdown code.
Convert numbers between binary, octal, decimal, hexadecimal, and any base from 2 to 36 instantly and free, right in your browser.
A Number Base Converter is a free tool that translates a whole number from one numeral system to another—binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), or any base from 2 to 36. Type a value into any field and every other base updates instantly, so you can see the same number expressed four different ways at once.
This converter runs entirely in your browser using JavaScript BigInt, which means there is no upper limit imposed by 32- or 64-bit math. You can convert astronomically large integers without losing a single digit, and nothing you type is ever sent to a server.
A number base (or radix) is how many unique digit symbols a numeral system uses before it rolls over to the next place value. Decimal uses ten symbols (0–9), binary uses two (0 and 1), and hexadecimal uses sixteen (0–9 then A–F). The same quantity looks different in each system: the decimal number 42 is 101010 in binary, 52 in octal, and 2A in hexadecimal.
2 in a binary field) instead of guessing.Programmers, students, and hardware engineers switch bases constantly. Memory addresses, bitmasks, permission flags, and color values are far easier to read in hexadecimal than in long decimal strings, while binary makes the individual on/off bits explicit. If you work with colors specifically, you might pair this with a Hex to RGB Converter to turn those hexadecimal channel values into RGB. When you need a compact, unique identifier instead of a raw number, a UUID / GUID Generator produces hexadecimal-based UUIDs that follow the same base-16 alphabet.
It is important not to confuse numeric base conversion with character encoding. This tool treats your input as a single number and re-expresses that quantity in another base. A Text to Binary Converter, by contrast, encodes each character of a string into its binary byte using a scheme like ASCII or UTF-8—so "A" becomes 01000001 because that is its code point, not because "A" is a number. Use base conversion for arithmetic values and bit patterns; use text-to-binary when you are encoding readable text. In the same spirit, a Unix Timestamp Converter interprets a decimal number as a point in time rather than simply restating it in another base.
The Standard Bases tab covers binary (2), octal (8), decimal (10), and hexadecimal (16) simultaneously. The Arbitrary Base tab supports any base from 2 to 36, using the digits 0–9 followed by the letters A–Z as needed.
Yes. The tool uses JavaScript BigInt, so it converts arbitrarily large integers exactly without the overflow or rounding you get from standard 64-bit numbers.
Each field only accepts digits that are legal for its base. If you type a character that is out of range—such as an 8 in an octal field or a G in a hex field—the tool shows an inline error and pauses until you fix it.
It displays the binary form grouped into 4-bit nibbles and reports the total bit count, which makes it easy to read bitmasks, spot set bits, and line values up with byte boundaries.
No. Every conversion happens locally in your browser with JavaScript. Nothing is uploaded, logged, or stored, and the tool keeps working even if you go offline after the page loads.
It converts signed whole integers, so a leading minus sign is respected. It does not convert fractional or floating-point values—enter integer quantities for accurate results.