Skip to content
nestoo
  • What is my IPYour public IPv4 and IPv6 address, location and provider.Network & IP
  • Speed testMeasure your download and upload speed, latency and jitter.Network & IP
  • IP lookupLocation, provider and network of any IP address.Network & IP
  • DNS lookupA, AAAA, MX, TXT, NS and other DNS records for any domain.Network & IP
  • WHOIS lookupOwner, registrar and expiry date of any domain or IP.Network & IP
  • Prefix lookupCheck a prefix in BGP, RPKI and the IRRs before you announce it.Network & IP
  • ASN lookupOwner, announced prefixes and neighbours of any AS number.Network & IP
  • Subnet calculatorNetwork, broadcast, host range and mask of any IPv4 or IPv6 subnet.Network & IP
  • Port checkerCheck whether a port is open on your IP or a server.Network & IP
  • HTTP headers checkerResponse headers, status codes and redirect chain of a URL.Network & IP
  • SSL checkerCertificate validity, expiry and chain of any website.Network & IP
  • SPF, DKIM and DMARC checkerCheck a domain’s SPF, DKIM and DMARC records for mistakes.Network & IP
  • Password generatorStrong, random passwords generated right in your browser.Passwords & security
  • Password strength checkerHow long a password would take to crack, and if it leaked.Passwords & security
  • Hash generatorMD5, SHA-1, SHA-256, SHA-512 and CRC32 hashes of text or files.Passwords & security
  • JSON formatterFormat, validate and minify JSON, with exact error locations.Developer tools
  • Base64 encoder/decoderEncode text or files to Base64 and decode it back.Developer tools
  • URL encoder/decoderEncode and decode URLs and query strings, and parse any URL.Developer tools
  • JWT decoderRead the header and claims of a JSON Web Token.Developer tools
  • UUID generatorRandom UUID v4 and time-ordered v7 identifiers.Developer tools
  • Unix timestamp converterConvert Unix timestamps to dates and dates to epoch time.Developer tools
  • Binary converterTranslate text to binary and convert between number bases.Developer tools
  • Image compressorMake JPG, PNG, WebP and AVIF files smaller, many at once.Image tools
  • Image resizerResize images to exact pixels or by percentage, many at once.Image tools
  • Image converterConvert HEIC, PNG, WebP, AVIF and more to JPG, PNG, WebP or AVIF.Image tools
  • Crop imageCrop, rotate and flip images to any size or aspect ratio.Image tools
  • EXIF viewer and removerSee the hidden data in photos, including location, and remove it.Image tools
  • Favicon generatorTurn a logo into favicon.ico, Apple touch icon and app icons.Image tools
  • Image to Base64Turn images into Base64 data URIs, and data URIs back into images.Image tools
  • Word counterCount words, characters, sentences and reading time.Text tools
  • Case converterUPPERCASE, lowercase, Title Case, camelCase, snake_case and more.Text tools
  • Diff checkerCompare two texts and highlight the differences.Text tools
  • QR code generatorFree QR codes for links, text, Wi-Fi and contacts, as PNG or SVG.Everyday tools
  • Percentage calculatorPercent of a number, percentage change, increase and decrease.Everyday tools
  • Unit converterConvert length, weight, temperature, volume, data and more.Everyday tools

Binary converter

Translate text to binary code and back, or convert numbers between decimal, binary, octal and hexadecimal. Every field updates as you type.

Group binary digits

Runs in your browser. What you enter never leaves your device.

How to use it

  1. 1.For numbers, stay on “Number bases” and type into any field: decimal, binary, octal or hexadecimal. The other three update instantly.
  2. 2.Prefixes such as 0b, 0o and 0x, a minus sign, and spaces or underscores between digits are all fine. Choose whether to group binary digits in fours (nibbles) or eights (bytes).
  3. 3.For text, switch to “Text ↔ binary” and type a message to get its UTF-8 bytes in binary, hex or decimal.
  4. 4.To read binary code, choose the opposite direction and paste the bytes, with or without spaces. Swap flips the direction and keeps the result.

How binary numbers work

Binary is base 2: each digit, called a bit, is 0 or 1, and each position is worth twice the one to its right (1, 2, 4, 8, 16 and so on). So 1011 is 8 + 0 + 2 + 1 = 11. Decimal works the same way with powers of 10, octal with powers of 8, and hexadecimal with powers of 16, using the letters A–F for the values 10 to 15.

Programmers like hexadecimal because one hex digit is exactly four bits: F is 1111, so the byte 1111 0000 is simply F0. Octal digits stand for three bits each and live on mainly in Unix file permissions such as 755.

The converter uses arbitrary-precision integers, so it isn’t limited to 32 or 64 bits; numbers with thousands of digits work too. Negative numbers get a minus sign, and below the fields you also see their two’s complement, the form in which computers actually store them.

How text becomes binary

Computers store text as numbers. Unicode gives every character a number, its code point (A is 65, é is 233, € is 8364), and UTF-8 writes that number as one to four bytes. English letters and digits take one byte each, accented letters two, most other scripts three, and emoji four.

So “Hi” becomes 01001000 01101001: the byte 72 for H and 105 for i. Because the tool uses UTF-8, the encoding of the web, the bytes you get match what programs and websites really send.

Reading binary code

Binary messages are usually written as groups of eight bits, one group per byte. If the groups have only seven bits, because another converter dropped the leading zero, the tool still reads them as long as spaces separate the bytes. Without spaces, the total has to be a multiple of eight bits; otherwise there’s no way to tell where one byte ends and the next begins.

If the bytes don’t form valid UTF-8, the characters that can’t be decoded appear as �. That usually means the data isn’t text at all, or it was saved in an older character set such as Windows-1252.

Questions and answers

How do I convert binary to decimal?

Multiply each bit by its place value and add up the results. For 101101 that’s 32 + 8 + 4 + 1 = 45. Or type the binary number into the Binary field above and read the decimal value straight away.

How do I write my name in binary?

Open “Text ↔ binary” and type your name. Each letter becomes one 8-bit byte: A is 01000001 and a is 01100001, for example. Accented letters and characters from other alphabets take two or more bytes.

What is the difference between a bit and a byte?

A bit is a single binary digit, 0 or 1. A byte is a group of eight bits and can hold 256 different values, from 0 to 255 (00000000 to 11111111). File sizes are counted in bytes, while internet speeds are usually given in bits per second.

How are negative numbers stored in binary?

Almost all computers use two’s complement: to get −x, flip every bit of x and add 1. In 8 bits, −1 is 11111111 and −128 is 10000000. The converter shows the two’s complement of any negative number in the smallest common width: 8, 16, 32 or 64 bits.

Why do programmers use hexadecimal instead of binary?

It’s far shorter and converts to binary directly, because every hex digit stands for exactly four bits. A 32-bit value needs 32 binary digits but only 8 hex digits, which is why memory addresses, colour codes such as #FF8800 and hashes are written in hex.