Home › Developer Tools › Binary to Decimal Converter

Binary to Decimal Converter

Type a binary number to see its decimal value instantly, with the place values (powers of 2) added up step by step. Fractions like 0.101 and signed two's complement values work too.

Last updated:

Examples

Step-by-step conversion

    Advertisement
    Advertisement

    How to use the Binary to Decimal Converter

    1. Type a binary number in the left box. The decimal result appears instantly.
    2. Need the other direction? Type in the right box, or press ⇄ to swap.
    3. Working with negative numbers? Choose a signed two's complement bit width.
    4. Read the steps below the result to see exactly how the conversion works.
    5. Copy the result with one click.

    Binary to decimal formula

    A binary number is a sum of powers of 2. Number the digits from right to left starting at 0; each digit is multiplied by 2 to the power of its position:

    value = dn×2n + … + d1×21 + d0×20

    Example: 101010 = 1×25 + 1×23 + 1×21 = 42.

    Bit positionPower of 2Place value
    0201
    1212
    2224
    3238
    42416
    52532
    62664
    727128
    828256
    929512
    102101,024
    112112,048
    122124,096
    132138,192
    1421416,384
    1521532,768
    1621665,536

    Decimal, hex and binary table (0–255)

    All values that fit in one byte. Use Ctrl+F to find a value quickly.

    DecimalHexBinary (8-bit)
    0000000000
    1100000001
    2200000010
    3300000011
    4400000100
    5500000101
    6600000110
    7700000111
    8800001000
    9900001001
    10A00001010
    11B00001011
    12C00001100
    13D00001101
    14E00001110
    15F00001111
    161000010000
    171100010001
    181200010010
    191300010011
    201400010100
    211500010101
    221600010110
    231700010111
    241800011000
    251900011001
    261A00011010
    271B00011011
    281C00011100
    291D00011101
    301E00011110
    311F00011111
    322000100000
    332100100001
    342200100010
    352300100011
    362400100100
    372500100101
    382600100110
    392700100111
    402800101000
    412900101001
    422A00101010
    432B00101011
    442C00101100
    452D00101101
    462E00101110
    472F00101111
    483000110000
    493100110001
    503200110010
    513300110011
    523400110100
    533500110101
    543600110110
    553700110111
    563800111000
    573900111001
    583A00111010
    593B00111011
    603C00111100
    613D00111101
    623E00111110
    633F00111111
    644001000000
    654101000001
    664201000010
    674301000011
    684401000100
    694501000101
    704601000110
    714701000111
    724801001000
    734901001001
    744A01001010
    754B01001011
    764C01001100
    774D01001101
    784E01001110
    794F01001111
    805001010000
    815101010001
    825201010010
    835301010011
    845401010100
    855501010101
    865601010110
    875701010111
    885801011000
    895901011001
    905A01011010
    915B01011011
    925C01011100
    935D01011101
    945E01011110
    955F01011111
    966001100000
    976101100001
    986201100010
    996301100011
    1006401100100
    1016501100101
    1026601100110
    1036701100111
    1046801101000
    1056901101001
    1066A01101010
    1076B01101011
    1086C01101100
    1096D01101101
    1106E01101110
    1116F01101111
    1127001110000
    1137101110001
    1147201110010
    1157301110011
    1167401110100
    1177501110101
    1187601110110
    1197701110111
    1207801111000
    1217901111001
    1227A01111010
    1237B01111011
    1247C01111100
    1257D01111101
    1267E01111110
    1277F01111111
    1288010000000
    1298110000001
    1308210000010
    1318310000011
    1328410000100
    1338510000101
    1348610000110
    1358710000111
    1368810001000
    1378910001001
    1388A10001010
    1398B10001011
    1408C10001100
    1418D10001101
    1428E10001110
    1438F10001111
    1449010010000
    1459110010001
    1469210010010
    1479310010011
    1489410010100
    1499510010101
    1509610010110
    1519710010111
    1529810011000
    1539910011001
    1549A10011010
    1559B10011011
    1569C10011100
    1579D10011101
    1589E10011110
    1599F10011111
    160A010100000
    161A110100001
    162A210100010
    163A310100011
    164A410100100
    165A510100101
    166A610100110
    167A710100111
    168A810101000
    169A910101001
    170AA10101010
    171AB10101011
    172AC10101100
    173AD10101101
    174AE10101110
    175AF10101111
    176B010110000
    177B110110001
    178B210110010
    179B310110011
    180B410110100
    181B510110101
    182B610110110
    183B710110111
    184B810111000
    185B910111001
    186BA10111010
    187BB10111011
    188BC10111100
    189BD10111101
    190BE10111110
    191BF10111111
    192C011000000
    193C111000001
    194C211000010
    195C311000011
    196C411000100
    197C511000101
    198C611000110
    199C711000111
    200C811001000
    201C911001001
    202CA11001010
    203CB11001011
    204CC11001100
    205CD11001101
    206CE11001110
    207CF11001111
    208D011010000
    209D111010001
    210D211010010
    211D311010011
    212D411010100
    213D511010101
    214D611010110
    215D711010111
    216D811011000
    217D911011001
    218DA11011010
    219DB11011011
    220DC11011100
    221DD11011101
    222DE11011110
    223DF11011111
    224E011100000
    225E111100001
    226E211100010
    227E311100011
    228E411100100
    229E511100101
    230E611100110
    231E711100111
    232E811101000
    233E911101001
    234EA11101010
    235EB11101011
    236EC11101100
    237ED11101101
    238EE11101110
    239EF11101111
    240F011110000
    241F111110001
    242F211110010
    243F311110011
    244F411110100
    245F511110101
    246F611110110
    247F711110111
    248F811111000
    249F911111001
    250FA11111010
    251FB11111011
    252FC11111100
    253FD11111101
    254FE11111110
    255FF11111111

    Frequently asked questions

    How do you convert binary to decimal?

    Write the powers of 2 under the bits from right to left (1, 2, 4, 8, 16, …) and add the ones where the bit is 1. For 101010: 32 + 8 + 2 = 42.

    What is 11111111 in decimal?

    11111111 is 255 as an unsigned byte. In signed 8-bit two's complement it is −1.

    How do I read a negative binary number?

    Choose the signed mode with the right bit width. If the highest bit is 1, the value is the unsigned value minus 2ⁿ. In 8 bits, 10000000 = 128 − 256 = −128.

    How are binary fractions converted?

    Bits after the point are worth ½, ¼, ⅛ and so on. 0.101 = 0.5 + 0.125 = 0.625.

    Can I paste binary with spaces?

    Yes. Spaces, underscores and a 0b prefix are ignored, so 1010 1010 and 0b10101010 both work.

    What is the largest binary number it can convert?

    There is no fixed limit; it uses BigInt arithmetic, so 64-bit and much longer binary strings convert exactly.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Decimal to BinaryConvert decimal to binary instantly with steps and signed mode.Number Base ConverterConvert numbers between any bases from 2 to 36, with fractions and steps.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Binary TranslatorConvert text to binary, hex, octal and back.CIDR to IP RangeConvert IPv4 or IPv6 CIDR blocks to first/last IP, mask and host count, and export IP lists.IPv4 to IPv6 ConverterConvert IPv4 to IPv4-mapped, 6to4 and NAT64 IPv6, extract IPv4 from IPv6, and get int/hex/binary.Lights Out GameTurn off every light in the classic 5x5 puzzle, with solvable random boards and a solver.Subnet Mask Cheat SheetInteractive /0 to /32 table of subnet masks, wildcards and host counts with details per prefix.JSON to Excel ConverterTurn JSON into a styled .xlsx spreadsheet; nested arrays become their own linked sheets.JSON to CSVConvert JSON data to CSV for spreadsheets.CSV to JSONConvert CSV data to JSON with live preview.Excel to CSVConvert XLSX spreadsheets to CSV.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.Line Ending ConverterConvert text and files between CRLF, LF and CR line endings.Markdown to HTMLConvert Markdown to clean HTML with a live editor.XML to JSONConvert XML to JSON with validation.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.TTF to WOFF2 ConverterConvert TTF and OTF fonts to WOFF2 or WOFF and get a ready @font-face CSS snippet.Chmod CalculatorConvert Linux file permissions between checkboxes, octal (755) and symbolic (rwxr-xr-x) notation.JSON to TypeScriptGenerate TypeScript interfaces or types from JSON, with nested types and optional fields.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.HTML Table GeneratorBuild HTML tables in an editable grid with styles, header rows, CSV import and live preview.Hex to Text ConverterConvert hex to text and text to hex with UTF-8 support and space, 0x, \x or comma formats.JSON to XML ConverterConvert JSON to well-formed XML with attributes, arrays and pretty print.JSON to YAML ConverterConvert JSON to clean YAML as you type, with indent, quoting and sort options.YAML to JSON ConverterConvert YAML to pretty or minified JSON, with errors pinned to the exact line.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.Image to Base64Convert images to Base64 data URIs, CSS backgrounds and HTML img tags in your browser.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.JSON CompareCompare two JSON documents and see every added, removed and changed path.Decimal to HexConvert decimal to hex instantly with steps and signed mode.Two's Complement CalculatorDecimal to two's complement binary and back for 4-64 bits, with invert-and-add-1 steps.XML to CSV ConverterConvert XML to CSV: detects repeating records, flattens nested data, pick your columns.CSV to XML ConverterConvert CSV to well-formed XML with custom root and row names, escaping and pretty print.JSON to Go StructTurn JSON into Go structs with inferred types, nested structs and json tags.JSON to Python ClassGenerate Python dataclasses, Pydantic models or TypedDicts with type hints from JSON.JSON to C# ClassConvert JSON to C# classes or records with System.Text.Json or Newtonsoft attributes.JSON SorterSort JSON keys A-Z recursively, sort arrays by value or by a key, then pretty-print or minify.JSON to HTML TableConvert a JSON array of objects into clean HTML table code with CSS styles and a live preview.CSV to SQL ConverterConvert CSV to SQL CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.cURL to Code ConverterConvert curl commands to JavaScript fetch, Axios, Python requests, Node.js, PHP and Go code.Code to ImageTurn code into a beautiful syntax-highlighted PNG with themes, window frame and background.Excel to JSON ConverterConvert Excel sheets (XLSX, XLS, ODS) to JSON with header row, type and shape options.CSV to Excel ConverterConvert CSV files to a real .xlsx workbook with typed numbers and dates, one sheet per file.CSV SplitterSplit a large CSV into smaller files by row count, file count or column value, header kept.CSV MergerCombine many CSV files into one, matching columns by name, with dedupe and a source column.VCF to CSV ConverterConvert vCard (.vcf) contacts to CSV for Google or Outlook, or turn a CSV back into a VCF.Calendar Event (.ics) GeneratorCreate an .ics calendar invite with time zone, reminders and repeats + Google/Outlook links.CSV Column ExtractorPick, reorder and rename CSV columns, filter rows by value, and export a new CSV or JSON.CSV Diff CheckerCompare two CSV files by key column and see added, removed and changed rows cell by cell.CSV Duplicate Row RemoverRemove duplicate rows from a CSV by all or selected columns and download the cleaned file.CSV to HTML TableTurn CSV into clean HTML table code with a live preview, styling options and one-click copy.CSV to Markdown TableConvert CSV to a neatly aligned GitHub Markdown table with column alignment and live preview.CSV TransposeSwap rows and columns of CSV, TSV or pasted spreadsheet data, with delimiter auto-detect.Date Format ConverterConvert any date to ISO 8601, RFC 2822, Unix time and custom strftime, moment or Java patterns.ENV to JSON ConverterConvert .env files to JSON or YAML and JSON back to .env, with quotes and multiline values.File to Base64Convert any file to a Base64 string or data URI with MIME detection, line wrap and download.HTML Table to CSVExtract any table from HTML or page source to CSV, TSV or JSON, with colspan and rowspan handled.IEEE 754 Floating Point ConverterConvert decimals to 32/64-bit IEEE 754 floats: toggle bits, see hex, exact value and rounding error.INI to JSON ConverterConvert INI and CFG files to JSON and JSON back to INI, with sections, arrays and types.IP Address ConverterConvert IPv4 to decimal, hex, binary, octal and back, with class and private/public check.ISBN Converter & ValidatorConvert ISBN-10 to ISBN-13 and back, validate check digits and hyphenate, one or in bulk.JSON Flatten / UnflattenFlatten nested JSON to dot or bracket path keys, or unflatten flat keys back to nested JSON.JSON to Dart ClassTurn JSON into Dart model classes with fromJson, toJson, null safety and nested classes.
    See all 129 Data & File Format Converters →