Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Enter the text, or paste 8-bit groups to decode.
  2. Leave Direction on encode unless you are reading groups back.
  3. Copy the groups with their leading zeros.
  4. Decode rejects any group that is not binary or that is above 255.

What is Text and binary?

Every UTF-8 byte is written as eight bits, padded on the left with zeros so a small value still occupies a full group. O is 01001111, not 1001111. The sentence Odd socks in the dryer. begins 01001111 01100100 01100100 00100000, which is O, d, d and the space 00100000.

Read more

The padding is the detail people lose in a calculator that prints the shortest binary. Decode expects groups that are valid binary and at most 255. You can separate them with spaces or commas. A group with a digit other than 0 or 1 is rejected.

Multi-byte characters take several groups. The same letter that is two hex pairs is two binary groups. Code points such as U+1F366 are not what this page prints; those live on the code-point converter.

Use cases

  • A networking lab wants the space character as 00100000, eight bits, not a shortened 100000.
  • Someone comparing an ASCII chart to a packet dump needs the leading zeros kept.
  • A student checks that the period in a sentence is 00101110.
  • You have a line of 8-bit groups from a worksheet and want the text back without transcribing each group by hand.

The sentence, eight bits per byte

Direction encode. Text: Odd socks in the dryer.

01001111 01100100 01100100 00100000 01110011 01101111 01100011 01101011 01110011 00100000 01101001 01101110 00100000 01110100 01101000 01100101 00100000 01100100 01110010 01111001 01100101 01110010 00101110

Why use Oddsock

Eight-bit groups match how ASCII charts and protocol docs write a byte. Dropping a leading zero makes the next person mis-count.

Related tools

Using this tool

01001111 is eight bits. The numeric value 1001111 is the same number with the width thrown away, and width is what a byte listing is for.