Developer tools

Binary to Decimal Converter

Convert between binary, decimal, hexadecimal, and octal with the working shown step by step. Supports signed two's complement and common bit widths. Runs in your browser.

Input base
Sign mode
Bit width

Converted · 8-bit pattern 1010 1101

Binary (base 2)

10101101

Octal (base 8)

255

Decimal (base 10)

173

Hexadecimal (base 16)

AD

Working (step by step)

  1. 1. Place values (base 2 → decimal)

    1×2^7=128 + 0×2^6=0 + 1×2^5=32 + 0×2^4=0 + 1×2^3=8 + 1×2^2=4 + 0×2^1=0 + 1×2^0=1
  2. 2. Sum

    = 173₁₀
  3. 3. Successive division → base 16

    173 ÷ 16 = 10 rem D
    10 ÷ 16 = 0 rem A
  4. 4. Remainders (bottom → top)

    AD
  5. 5. Successive division → base 8

    173 ÷ 8 = 21 rem 5
    21 ÷ 8 = 2 rem 5
    2 ÷ 8 = 0 rem 2
  6. 6. Remainders (bottom → top)

    255

What Is a Binary to Decimal Converter?

A binary to decimal converter turns base-2 values into base-10 using place values (powers of 2). This free online tool also converts octal (base 8) and hexadecimal (base 16), so you can move between binary, decimal, hex, and octal in one place—with the arithmetic shown step by step.

Conversion runs in your browser. Use it for bit patterns, ASCII-related codes, or checking work you would otherwise do with parseInt(value, radix) and toString(2).

Hex to Binary, Octal, and Bit Widths

Choose hexadecimal as the input base to run an online hex to binary converter with steps. Bit width (8, 16, 32, 64) controls how many bits are kept in the pattern—useful when you care about a nibble, byte, or word size and the most significant bit.

Signed Values and Two's Complement

Unsigned mode treats the pattern as a non-negative integer. Signed mode uses two's complement so the same bits can represent a negative decimal value. That matches how many CPUs and languages store signed integers.

Number Base Converter FAQs

How do I convert binary to decimal?

Enter a base-2 value (for example 1010). The converter expands place values (1×2³ + 0×2² + 1×2¹ + 0×2⁰) and shows the decimal result, plus hex and octal equivalents.

Can I convert hex to binary with steps?

Yes. Choose hexadecimal as the input base, paste a hex value (with or without a 0x prefix), and review the place-value expansion plus successive division steps that produce the binary bit pattern.

What is two's complement / signed mode?

Signed mode interprets the bit pattern using two's complement for the selected bit width (8, 16, 32, or 64). The most significant bit is the sign bit, so the same pattern can mean a different decimal value than unsigned mode.

Which bases are supported?

Base 2 (binary), base 8 (octal), base 10 (decimal), and base 16 (hexadecimal). You can convert from any of these radices into all of the others.

Is this related to parseInt or toString in JavaScript?

Same idea: parse a string with a radix, then emit other bases. This page shows the arithmetic (place values and successive division) instead of only calling parseInt(x, radix) / toString(2).

Is my number uploaded?

No. Conversion runs in your browser. Free tool—nothing is sent to LiveTechHacks.

Related Developer & SEO Tools

Other LiveTechHacks utilities that also run in your browser.

JWT Decoder

Decode JWT tokens instantly and inspect the header, payload, claims, signature details, and expiration time in a readable format.

Open Tool

Slug Generator

Turn any title or phrase into a clean, SEO-friendly URL slug. Accents, symbols, and optional stop words are handled locally in your browser.

Open Tool

Passphrase Generator

Generate strong, memorable passphrases from the EFF diceware wordlist. Pick your word count and separator. Runs offline — nothing is ever transmitted.

Open Tool

Cron Expression Generator

Build cron expressions visually and preview the next run times instantly. Supports standard crontab, Quartz, Spring and AWS syntax. Free, with no sign-up.

Open Tool

YAML ↔ JSON Converter

Convert YAML to JSON and JSON to YAML instantly, with validation and error highlighting. Works with Kubernetes, OpenAPI and Docker Compose files.

Open Tool

UUID Generator

Generate random UUID v4, v1 and v7 identifiers in bulk, up to 1,000 at a time. Copy or download instantly in your browser.

Open Tool

Epoch Converter

Convert Unix timestamps to readable dates and back, in seconds or milliseconds. Live clock, timezones, and code snippets.

Open Tool

Base64 Encoder & Decoder

Encode and decode Base64 strings, files and images instantly. Supports base64url and data URIs in your browser.

Open Tool

Hex to RGB Converter

Convert hex colour codes to RGB, RGBA, HSL and CMYK instantly with a live preview swatch and code snippets.

Open Tool

CSV ↔ JSON Converter

Convert CSV to JSON and JSON to CSV instantly. Custom delimiters, headers, quoted fields, and nested object flattening.

Open Tool

HTML Minifier

Minify HTML to cut page weight. Strip comments, collapse whitespace, and review before-and-after size — free in your browser.

Open Tool

Case Converter

Convert text between uppercase, lowercase, sentence case, title case, camelCase, and snake_case. Supports AP and Chicago title style.

Open Tool

JSON Formatter & Validator

Format, validate and beautify JSON with a collapsible tree view and line/column error reporting. Free, private, no sign-up.

Open Tool

Markdown to HTML Converter

Convert Markdown to clean HTML with a live side-by-side preview. Supports GFM, tables, and code highlighting.

Open Tool

XML Formatter Online

Format, indent and validate XML with error highlighting and a collapsible tree view. Works with SOAP, RSS, and sitemaps.

Open Tool

Diff Checker

Compare text or code side by side with line and character highlighting. Ignore whitespace or case. Free and private.

Open Tool

Regex Tester

Test regular expressions live with match highlighting, capture groups, and plain-English explanations.

Open Tool

ASCII Table

Complete ASCII chart with decimal, hex, binary, and octal values—plus extended ASCII. Searchable and printable.

Open Tool

CSS Minifier

Minify CSS online—strip comments and whitespace, collapse shorthand, shorten colors, and see bytes saved.

Open Tool