Number Base Converter - Binary, Hex, Decimal & Octal Calculator

Convert numbers between binary, octal, decimal, hexadecimal, and any base from 2 to 36. Includes bitwise operations and visual bit representation.

10
Input Number
Examples:
255
1024
4096
Settings

Master number systems with our advanced Number Base Converter. Instantly translate between Binary (Base 2), Octal (Base 8), Decimal (Base 10), and Hexadecimal (Base 16). Support for custom bases up to 36 makes this the ultimate tool for developers, students, and mathematicians. Whether you're debugging low-level code, converting color codes, analyzing network masks, or learning about radix systems, our precision tool handles integers, floating-point numbers, and large values with ease. Experience the fastest way to convert bases online.

How to Use Number Base Converter

Quick Conversions for Developers

Need to convert a hex dump to decimal or check a binary flag? Simply select your input base (e.g., 16 for Hex) and type your value. The results update instantly across all common bases (Binary, Octal, Decimal, Hex) in the dashboard view.

For Students & Educators

Visualize how numbers change across systems. Use the "Visual Bit Grid" to see exactly how binary bits correspond to values. It's a perfect companion for computer science courses, digital logic design, and learning about positional notation.

Batch Processing for Data Science

Working with a dataset? Switch to "Batch Mode" to convert lists of numbers simultaneously. Paste a column of hexadecimal addresses or binary strings, and get a formatted list of decimal equivalents instantly.

Bitwise Logic Operations

Perform low-level logic directly in the browser. Select the "Bitwise Operations" tab to calculating AND, OR, XOR, NOT, and bit shifts. Ideal for calculating subnet masks, permission bits, and microcontroller register configurations.

Handling Negative Numbers

Toggle "Signed Mode" to work with Two's Complement representation. This is crucial for understanding how integers are stored in memory (e.g., int8, int16, int32). See how -1 translates to a string of 1s in binary.

Calculator Features

๐Ÿ”„

Universal Base Support

Convert seamlessly between any base from 2 (Binary) to 36 (Alphanumeric).

โšก

Instant Live Conversion

Results appear immediately as you typeโ€”no "Calculate" button needed.

๐ŸŽจ

Color & UI Helpers

Visual bit grid with interactive toggles makes binary math intuitive and easy to learn.

๐Ÿ”ง

Developer Tools

Built-in bitwise calculator for AND, OR, XOR, NOT, and bit-shift operations.

๐Ÿ“Š

Batch Converter

Process hundreds of values at once with our bulk conversion text area.

โž•

Signed Integer Mode

Full support for Two's Complement representation of negative numbers.

๐Ÿ”ข

Arbitrary Precision

Powered by BigInt to handle numbers larger than standard 64-bit integers.

๐ŸŽฏ

Floating Point

Convert fractional numbers (e.g., 0.125 decimal to 0.001 binary) with high accuracy.

๐Ÿ›ก๏ธ

Privacy Focused

All calculations happen in your browser. No data is sent to any server.

๐Ÿ“ฑ

Mobile Responsive

Optimized interface for debugging on the go with your phone or tablet.

Complete Function List

  • Convert between all bases 2-36:
  • Real-time reactive results:
  • Binary, Octal, Decimal, Hexadecimal Dashboard:
  • Interactive Visual Bit Grid:
  • Bitwise Logic Calculator (AND/OR/XOR/NOT):
  • Left and Right Bit Shifts (<<, >>):
  • Batch/Bulk Conversion Mode:
  • Signed (Two's Complement) & Unsigned Modes:
  • Floating-point fraction support:
  • Scientific notation for large values:
  • Input validation with error highlighting:
  • Local history of recent conversions:
  • One-click copy to clipboard:
  • Byte grouping for readability (e.g., 8-bit, 16-bit):
  • BigInt support for massive numbers:
  • Dark/Light mode compatible:

Common Calculations & Examples

Example 1: Unix File Permissions (Octal to Binary)

Problem: Interpret the "chmod 755" permission string.

Steps:

  1. Set Input Base to 8 (Octal)
  2. Enter "755"
  3. Read the Binary output
Result: 111 101 101

Explanation: 7 (rwx) -> 111, 5 (r-x) -> 101. So 755 means Owner: Read/Write/Exec, Group: Read/Exec, Others: Read/Exec.

Example 2: Web Colors (Hex to Decimal)

Problem: Convert the red channel of color #FF5733 to decimal.

Steps:

  1. Set Input Base to 16 (Hexadecimal)
  2. Enter "FF" (the red component)
  3. Read the Decimal output
Result: 255

Explanation: #FF in Hex represents the maximum value (255) in an 8-bit color channel, meaning "Full Red".

Example 3: IP Subnet Mask (Decimal to Binary)

Problem: Visualize a standard /24 subnet mask (255.255.255.0).

Steps:

  1. Set Input Base to 10 (Decimal)
  2. Enter "255"
Result: 11111111 (Binary)

Explanation: Each "255" in an IP address represents 8 bits set to 1. A 255.255.255.0 mask is 24 consecutive 1s.

Example 4: Debugging Pointers (Hex to Binary)

Problem: Check existing flags in a memory address 0xA0.

Steps:

  1. Set Input Base to 16 (Hex)
  2. Enter "A0"
  3. View the Visual Bit Grid
Result: 10100000

Explanation: The bits at position 7 and 5 are set. This helps developers identify active system flags quickly.

Example 5: Base 36 Encoding

Problem: Convert a large ID number "1000000" to a shorter string.

Steps:

  1. Set Input Base to 10 (Decimal)
  2. Enter "1000000"
  3. Check Base 36 output
Result: LFLS

Explanation: Base 36 converts large numbers into compact alphanumeric strings, often used for URL shorteners and unique IDs.