Unsigned integers and Unicode code points only. No signed two’s-complement widths and no fractional radix conversion. Large integers use BigInt for exact digit output.

Skip to number base converter

Number Base Converter

Convert between binary, decimal, octal, hexadecimal, and any radix from 2–36. Paste one value or many tokens—live auto-convert, optional byte padding, and exact BigInt results for large integers.

By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026-09-06· Reviewed by EverydayTools Editorial Team

What is a number base converter?

Positional number systems use different digit alphabets for the same value. Binary uses 0–1, octal 0–7, decimal 0–9, and hexadecimal 0–9 plus A–F. Custom bases up to 36 add A–Z.

**This free number base converter** handles:

Use it for homework checks, bitmask inspection, Unix permission octals, hex dumps, and protocol fields—not for hex color pickers or signed two’s-complement widths.

  • Binary ↔ decimal ↔ octal ↔ hex
  • Custom source/target radix 2–36
  • Multi-token paste (spaces or newlines)
  • Optional 8-bit binary / 2-digit hex padding
  • Conversion breakdown for a single value
  • Text ↔ Unicode code points (separate from text-to-binary byte strings)
  • BigInt for integers beyond JavaScript’s safe integer limit

One page owns integer radix conversion. For encoding whole strings as binary bitstreams, use Text to Binary; for CSS colors, use Color Picker.

Who uses a number base converter

Students & CS courses

Binary, octal, and hex homework checks

Verify binary to decimal, decimal to binary, and hex conversions against class examples.

Software developers

Debug hex dumps and bitmasks

Convert hex constants to decimal/binary or binary flags to hex when reading logs and registers.

Sysadmins

Unix permission octals

Translate octal permission values (e.g. 755) to binary bit patterns or decimal for documentation.

Embedded & security

Large hex constants

Convert 64-bit hex values to exact decimal with BigInt instead of rounded floating-point math.

Number Base Converter examples

Decimal to binary

Input

255

Output

11111111 (or 11111111 with 8-bit padding)

255₁₀ = 11111111₂ = FF₁₆ = 377₈.

Binary to decimal

Input

1010

Output

10

1×8 + 0×4 + 1×2 + 0×1 = 10.

Hex to decimal

Input

FF

Output

255

15×16 + 15 = 255.

Decimal to hex

Input

16

Output

10

16₁₀ = 10₁₆ = 10000₂ = 20₈.

Binary to hex

Input

1010

Output

A

Nibble 1010 maps to hex digit A.

Workflow guides

Step-by-step chains that connect related tools for common tasks.

Convert a hex dump line to binary

  1. Set From = Hexadecimal and To = Binary.
  2. Paste space-separated hex bytes.
  3. Enable 8-bit binary padding if you want fixed-width bits.
  4. Copy the binary tokens for notes or a bug report.

Check decimal ↔ binary homework

  1. Set Decimal → Binary (or Binary → Decimal).
  2. Enter the problem value.
  3. Compare the live result and optional via-decimal breakdown.

Quick number base reference

Same unsigned integers shown in binary, octal, decimal, and hex.

DecimalBinaryOctalHex
10101012A
15111117F
16100002010
321000004020
64100000010040
1281000000020080
25511111111377FF
256100000000400100
1024100000000002000400

Enter any of these values above to convert live. Padding options can add leading zeros for binary/hex display.

Keyword ownership on EverydayTools

Keep number-base intent separate from encoding and color tools.

NeedUse this pageUse instead
Binary ↔ decimal ↔ hex ↔ octal integersYes—
Custom bases 2–36Yes—
Text string ↔ binary bit streamNoText to Binary
Text ↔ hex dump / UTF-8 bytesCode points onlyText to Hex
Pick CSS HEX/RGB colorsNoColor Picker
IPv4 integer / dotted quadNoIP Converter

Best practices

Pad binary when inspecting bytes

Enable 8-bit padding so each token aligns to a byte boundary in dumps and packet captures.

Prefer hex for compact byte display

One hex digit = 4 bits; two hex digits = one byte—handy for memory and protocol fields.

Share URLs for reproducible checks

Copy the share link so teammates restore the same bases, padding, and input.

Common mistakes to avoid

Expecting signed two’s-complement output

Values are unsigned. Apply bit-width rules yourself or use a dedicated signed/bitwise tool.

Using Number math for 64-bit hex

Watch for the BigInt banner—EverydayTools keeps large integers exact.

Confusing text code points with UTF-8 bytes

Text mode emits scalar values. For byte dumps of strings, prefer Text to Hex / Text to Binary workflows.

When this tool isn't the right choice

You need text ↔ binary encoding of whole strings

Use Text to Binary for 8-bit binary strings of text.

You need a hex color picker

Use Color Picker for HEX/RGB/HSL swatches and design tokens.

You need IPv4 ↔ integer conversion

Use IP Converter for dotted-quad address math.

You need fractional or floating-point radix conversion

This tool is integer-only (plus Unicode code points in text mode).

How base conversion works

Parse digits in the source radix into an integer (BigInt), then format that integer in the target radix. Single-value mode also shows the decimal intermediate.

Formula

value = Σ (digitᵢ × sourceRadixⁱ)
output = value.toString(targetRadix)

Assumptions

  • Non-negative integers (unsigned)
  • Digits 0–9 then A–Z for bases above 10
  • Hex/octal output may include 0x / 0o prefixes for standard bases

Limitations

  • No negative / two’s-complement width modes
  • No fractional (radix point) conversion
  • Text mode uses Unicode scalar values, not UTF-8 byte streams
  • Not a hex color picker or IP address calculator

How to convert number bases online

  1. Choose From and To bases

    Pick Binary, Decimal, Octal, Hexadecimal, Custom (2–36), or Text. Example: Decimal → Binary or Hexadecimal → Decimal.

  2. Enter one or more values

    Type integers separated by spaces or newlines. Optional 0x / 0o prefixes are stripped on input for hex and octal tokens.

  3. Convert (or leave auto-convert on)

    Results update live. For a single value, review the via-decimal breakdown when shown.

  4. Copy, swap, or share

    Copy output, swap direction using the latest result, or copy a share URL. Nothing is uploaded for normal use.

Advertisement

Frequently asked questions

How do you convert binary to decimal?

Multiply each bit by its power of 2 and add (or paste binary here with Binary → Decimal). Example: 1010₂ = 8+2 = **10**₁₀.

How do you convert decimal to binary?

Repeatedly divide by 2 and read remainders, or enter a decimal value with Decimal → Binary. Example: **10**₁₀ → **1010**₂. Enable 8-bit padding when you want byte-aligned bits.

How do you convert hexadecimal to decimal?

Treat each hex digit as base 16 (A=10 … F=15). Example: **FF**₁₆ = 15×16+15 = **255**₁₀. Select Hexadecimal → Decimal in the converter.

How do you convert decimal to hex?

Divide by 16 and map remainders to 0–9/A–F, or use Decimal → Hexadecimal. Example: **255**₁₀ → **FF**₁₆.

How do you convert binary to hex?

Group bits in fours from the right and map each nibble to one hex digit (1010 → A), or convert Binary → Hexadecimal here.

What bases does this converter support?

Presets for binary (2), octal (8), decimal (10), and hexadecimal (16), plus **custom radix 2–36**. Digits use 0–9 and A–Z.

What is a radix?

Radix means the base of a numeral system—the number of unique digits. Binary has radix 2; hex has radix 16.

Does it support large integers?

Yes. Values above JavaScript’s safe integer (2⁵³−1) use **BigInt** so every digit stays exact. A banner appears when BigInt mode is active.

Does it support negative numbers?

No. This tool targets non-negative integers. Signed two’s-complement layouts need an explicit bit-width tool or language REPL.

Is this the same as a text to binary converter?

No. Text mode here maps characters to Unicode **code points** in a chosen base. Encoding a whole string as an 8-bit binary bitstream belongs on Text to Binary.

Can I use this as a hex color converter?

You can convert a channel like FF → 255, but full color picking (HEX/RGB/HSL swatches) belongs on Color Picker—not this radix tool.

Is the number base converter free and private?

Yes. Free, no signup. Conversion, history, and local .txt reads run in your browser and are not uploaded to EverydayTools servers for normal use.

Privacy, accuracy, and trust

Privacy

Conversions, history, autosave, and local .txt reads run in your browser—nothing is uploaded to EverydayTools servers for core use.

Accuracy

Positional notation with BigInt for integers beyond Number.MAX_SAFE_INTEGER. Text mode uses Unicode scalar values, not UTF-8 byte sequences.

How this tool works

Parsing and formatting run client-side after you enter values.

Educational developer utility. Not a signed fixed-width ALU simulator, float inspector, or cryptographic tool.

Advertisement

Reviewed by EverydayTools Editorial Team on 2026-09-06.

Same workflow or intent — pick the next step without leaving the site.

Frequently opened tools from the same category.

People also use

Cross-category tools others open in the same session.

Explore categories

Browse full tool collections by topic.