Free Number Base Converter
Convert binary, octal, decimal, and hexadecimal values while checking fixed-width interpretations, bytes, and bit-level structure the way engineers actually read them.
Binary, Octal, Decimal, Hex
Number Base Converter
Convert values across number systems, inspect fixed-width interpretations, and read the underlying bytes the way firmware, protocol, and systems engineers often need to.
Prefixes like 0b, 0o, and 0x are supported. Spaces, underscores, and commas are stripped before parsing.
Detected base
hexadecimal
Decimal value
4278233685
Bit length
32 bits
Minimal bytes
4 bytes
Set bits
16
Width mode
32-bit
Converted outputs
Same value across the common engineering bases
Binary
0b11111111000000001010101001010101
1111 1111 0000 0000 1010 1010 0101 0101
Octal
0o37700125125
Compact octal representation
Decimal
4278233685
Signed decimal value
Hexadecimal
0xFF00AA55
FF 00 AA 55
Width-aware interpretation
Signed, unsigned, and byte-level views
Unsigned decimal
4278233685
Signed decimal
-16733611
Padded binary
1111 1111 0000 0000 1010 1010 0101 0101
Padded hexadecimal
FF 00 AA 55
Raw bytes
FF 00 AA 55
Byte insights
Quick reading aids
Minimal byte preview
...U
Width-specific ASCII
...U
Engineering note
ASCII previews are most useful when the value actually represents packed bytes. For ordinary counters, addresses, and masks, the byte and bit layouts are usually more important than the printable characters.
Conversion notes
Things worth noticing about this value
More Conversion & Debugging Tools
Binary to Text
Decode byte streams into readable text
Text to Binary
Encode characters into binary output
Hash Identifier
Inspect hex-looking values and hash formats
IPv4 to IPv6
Inspect embedded address representations
IPv6 to IPv4
Extract IPv4 values from mapped forms
JSON Formatter
Clean up structured payloads while debugging
Regex Tester
Validate patterns against numeric strings
AI Token Counter
Compare prompt size and context fit
Why use this tool
Built for engineers who need more than a quick binary-to-decimal swap
A lot of number base converters stop after showing binary, octal, decimal, and hex in four boxes. That helps with simple homework examples, but it usually falls short when you are debugging packet headers, reading register maps, checking bit masks, or comparing signed and unsigned interpretations of the same value. In those workflows, the base is only one part of the story. Width, padding, wraparound behavior, byte grouping, and printable byte previews often matter just as much.
This tool is built with that more practical workflow in mind. You can start with a plain decimal value, a binary flag string, or a hex constant copied from code, and then inspect how the same value behaves when you constrain it to 8-bit, 16-bit, 32-bit, 64-bit, or 128-bit storage. That makes it easier to reason about overflow, two's-complement interpretation, and whether a positive-looking number would actually read as negative once a sign bit is involved.
It is also useful for less dramatic but very common developer tasks: checking protocol values, decoding feature flags, comparing packed bytes, validating literals before adding them to firmware or tests, and explaining a representation to teammates who may be looking at the same value in another base. Because everything happens in the browser, you can use it as a quick scratchpad without shipping the data anywhere else.
How to use it well
Paste the exact literal you already have, pick the base only if you want to override auto-detect, then add a fixed width whenever the value needs to match a real register, field, or integer size.
What makes it robust
It handles prefixes, negative values, grouped digits, fixed-width wrapping, signed and unsigned views, byte extraction, and printable ASCII hints instead of stopping at one bare conversion table.
Where it helps most
Embedded development, networking, systems programming, reverse engineering, protocol inspection, and any debugging session where the same number keeps showing up in different bases.
FAQ
Common questions about number base conversion
Which bases does this number base converter support?
This converter supports binary, octal, decimal, and hexadecimal. It can also auto-detect prefixes like 0b, 0o, and 0x, while still letting you choose the input base explicitly when you want full control.
Can I inspect fixed-width values like 8-bit, 16-bit, or 32-bit integers?
Yes. You can apply a fixed width to see padded binary and hexadecimal output, unsigned and signed interpretations, byte values, and whether the value would wrap inside that width. That makes the tool practical for firmware, protocol, and low-level debugging work.
What happens when I enter a negative number?
The converter preserves the signed value for the main outputs. If you also choose a fixed width, it shows the width-specific two's-complement interpretation so you can compare the signed input against the wrapped unsigned bit pattern.
Why is auto-detect conservative with plain numbers like 1010?
Plain numeric strings are treated as decimal unless they carry a base prefix or non-decimal characters. That avoids surprising engineers who paste a value like 1010 and expect decimal. If you want binary, octal, or hex, select the base or use 0b, 0o, or 0x.