canivete
    ja

    TOOL · CALCULATOR

    Number base converter

    Type a number in binary, octal, decimal or hexadecimal and the other three bases show up instantly, ready to copy. An ASCII table comes along for quick reference.

    binary (base 2)
    octal (base 8)
    hexadecimal (base 16)
    ASCII table (32–126)

    decimal · hexadecimal · character

    32 · 0x20 · space33 · 0x21 · !34 · 0x22 · "35 · 0x23 · #36 · 0x24 · $37 · 0x25 · %38 · 0x26 · &39 · 0x27 · '40 · 0x28 · (41 · 0x29 · )42 · 0x2A · *43 · 0x2B · +44 · 0x2C · ,45 · 0x2D · -46 · 0x2E · .47 · 0x2F · /48 · 0x30 · 049 · 0x31 · 150 · 0x32 · 251 · 0x33 · 352 · 0x34 · 453 · 0x35 · 554 · 0x36 · 655 · 0x37 · 756 · 0x38 · 857 · 0x39 · 958 · 0x3A · :59 · 0x3B · ;60 · 0x3C · <61 · 0x3D · =62 · 0x3E · >63 · 0x3F · ?64 · 0x40 · @65 · 0x41 · A66 · 0x42 · B67 · 0x43 · C68 · 0x44 · D69 · 0x45 · E70 · 0x46 · F71 · 0x47 · G72 · 0x48 · H73 · 0x49 · I74 · 0x4A · J75 · 0x4B · K76 · 0x4C · L77 · 0x4D · M78 · 0x4E · N79 · 0x4F · O80 · 0x50 · P81 · 0x51 · Q82 · 0x52 · R83 · 0x53 · S84 · 0x54 · T85 · 0x55 · U86 · 0x56 · V87 · 0x57 · W88 · 0x58 · X89 · 0x59 · Y90 · 0x5A · Z91 · 0x5B · [92 · 0x5C · \93 · 0x5D · ]94 · 0x5E · ^95 · 0x5F · _96 · 0x60 · `97 · 0x61 · a98 · 0x62 · b99 · 0x63 · c100 · 0x64 · d101 · 0x65 · e102 · 0x66 · f103 · 0x67 · g104 · 0x68 · h105 · 0x69 · i106 · 0x6A · j107 · 0x6B · k108 · 0x6C · l109 · 0x6D · m110 · 0x6E · n111 · 0x6F · o112 · 0x70 · p113 · 0x71 · q114 · 0x72 · r115 · 0x73 · s116 · 0x74 · t117 · 0x75 · u118 · 0x76 · v119 · 0x77 · w120 · 0x78 · x121 · 0x79 · y122 · 0x7A · z123 · 0x7B · {124 · 0x7C · |125 · 0x7D · }126 · 0x7E · ~

    Processed in your browser — your files never leave your computer.

    How it works

    1. Type the number

      In the "Number" field, type an unsigned integer. Paste it as it came from code: prefixes like 0x and 0b, spaces and underscores are all accepted.

    2. Check the source base

      In the "Source base" selector, say which base your input is in: binary (base 2), octal (base 8), decimal (base 10) or hexadecimal (base 16). Decimal is the default.

    3. Read and copy the other three

      The remaining three bases appear live, with binary and hexadecimal grouped in blocks of 4 for easier reading. The "copy" button next to each one puts the clean value on your clipboard.

    Frequently asked questions

    What is binary, anyway?

    It is how computers count: only 0 and 1, because deep down everything is a switch that is on or off. We count in tens (ten fingers); computers count in twos. The number 5, for instance, becomes 101 in binary — one 4, no 2 and one 1.

    And hexadecimal — what is it for?

    Base 16: it uses 0–9 and then A–F (A is 10, F is 15). Programmers like it because it is compressed binary — each hex digit maps to exactly 4 bits. That is why web colors are written like #FF0000: red at full blast.

    Can I paste "0x1F" straight from code?

    Yes. The tool accepts the prefix of the chosen base (0b for binary, 0o for octal, 0x for hexadecimal) and ignores spaces and underscores — "1010 0001" and "0b1010_0001" work the same.

    Why does the binary show spaces in the middle?

    Just readability grouping, 4 digits at a time from the right — same reason we write 1,000,000 with commas. When you copy, the value goes out clean, no spaces.

    Is there a size limit?

    Any integer from 0 up to 18,446,744,073,709,551,615 — the famous 2⁶⁴ − 1, the largest unsigned 64-bit number. Beyond that, the tool tells you. Negatives and decimals are out: it is an integer converter.

    What is the ASCII table at the bottom for?

    Quick reference: characters 32 through 126 with their codes in decimal and hexadecimal. Handy when you are decoding bytes, escaping characters or learning how computers store text.

    Other tools