Hex / Decimal / Binary / Octal Converter

Convert numbers exactly between hexadecimal, decimal, binary, and octal.

No upload

Input

All conversions run locally in the browser with exact BigInt/rational arithmetic.

Output

Copy or download conversion as JSON.

Steps

How it works

Step by step

  1. 1

    Enter a number

    Use prefixes such as 0x, 0b, or 0o, or choose the source base directly.

Features

Hex, decimal, binary, and octal

Convert numbers between the most important number systems including automatic source base detection.

Exact BigInt/rational arithmetic

Integers, bit patterns, and fractions are processed locally and precisely.

Frequently asked questions

How does automatic source base detection work?

Auto detects 0x or # as hex, 0b as binary, and 0o as octal. Without a prefix, decimal is assumed.

More tools

Share with friends