DengWoLai DengWoLai
Dev · DengWoLai

Base Converter — Binary, Octal, Decimal, Hex

Base converter translates an integer between number bases. It also shows the two's complement form, which is what computers actually store for negative numbers — a point that confuses -5 into -101.

Runs locally · files stay on device · works offline

How it works in 4 steps

  1. 1

    Pick or drop

    Select or drag files into the card — loaded directly into local memory.

  2. 2

    Set options

    Adjust target KB, format, dimensions or filters with instant feedback.

  3. 3

    Process locally

    Canvas, WebAssembly, or Web Crypto completes the job on your device.

  4. 4

    Save result

    Download directly; close the tab to clear everything from memory.

When to use this

Scenario Recommended Why
Debugging a hex dump Base Converter Hex to decimal to ASCII in one place
A bitmask needs checking Base Converter Binary view makes set bits obvious
Working out two's complement Base Converter -5 is not -101 in 8 bits, it is 11111011

Privacy & Offline Guarantee

Ready to use with zero installation or login. Once loaded once, core dependencies cache locally so the tool works offline.

FAQ

Why is -5 not -101?

Binary has no minus sign in the usual computer representation. In two's complement, -5 is 11111011 in 8 bits: invert 00000101 to get 11111010, then add 1.

What is the difference between 0x and 0b?

Prefixes for hexadecimal and binary in most languages. 0x1F is 31, 0b11111 is also 31.

Is my input uploaded?

No — arithmetic runs locally.

Something failed, or you wish this tool also did something else? Tell me →

Related Tools

Dev
Image to Base64
Turn an image into a data URI, with size comparison.
Local only →
Dev
URL Encoder / Decoder
Percent-encode URLs — see both encoder variants.
Local only →
Dev
HTML Escape / Unescape
Escape HTML entities so text shows literally.
Local only →
Dev
JSON to YAML and Back
Convert between JSON and YAML — config never uploaded.
Local only →

Ready to process your files privately?

Back to tool ↑