Gratis å bruke, uten konto

Tekst til binær

Konverter ren tekst til nøyaktige UTF-8-biter, eller dekod fullstendige UTF-8-byte tilbake til tekst. Mellomrom mellom byteverdiene er valgfritt. Aksenter og emojier bevares; konverteringen kjøres i denne nettleseren.

Skriv inn tekst. Aksenter, linjeskift og emojier kodes som UTF-8.

Bruker UTF-8-byte, ikke tegnkoder eller en heltallsbasekonverterer. Tekstinndata: opptil 20,000 tegn. Binærinndata: opptil 160,000 biter, som må bestå av fullstendige og gyldige UTF-8-byte.

Hvordan konverterer jeg tekst til binær?

Velg «Tekst til binær», skriv inn teksten og konverter. Verktøyet koder UTF-8-byte som grupper på åtte biter. For å gjøre om igjen velger du «Binær til tekst» og limer inn grupper med åtte biter; mellomrom ignoreres.

Veiledning

Slik bruker du Tekst til binær

The Text to Binary Converter turns text into the zeros and ones of its UTF-8 bytes, and turns such bytes back into text. Each byte is shown as eight bits. It works with accents, line breaks and emoji, because those take more than one byte. It is not a number-base converter and it does not encrypt anything. Binary is just another way of writing the same bytes.

Slik gjør du

  1. Choose the direction: Text to binary (UTF-8), or Binary to text (UTF-8).
  2. For text to binary, type or paste your text. Tick the option to separate each eight-bit byte with a space if you want it easier to read.
  3. For binary to text, paste complete bytes of eight bits. Spaces, tabs and line breaks between them are ignored.
  4. Press Convert, then use Copy result or Download result to take a plain text file.

Eksempler

A short word with spaces between bytes

Du skriver inn
Modus
text to binary
Tekst
Hi!
Du får
Binær
01001000 01101001 00100001

H, i and ! are each one byte in UTF-8, which are the numbers 72, 105 and 33, written as eight bits each.

Kjørt med verktøyets egen kode.

An accented letter takes two bytes

Du skriver inn
Modus
text to binary
Tekst
é
Du får
Binær
11000011 10101001

The letter é is not plain ASCII, so UTF-8 uses two bytes for it. Emoji use four, as the page example shows with a waving hand.

Kjørt med verktøyets egen kode.

Without grouping

Du skriver inn
Modus
text to binary
Tekst
Hi
Grupper byte
nei
Du får
Binær
0100100001101001

With the grouping option off, the bytes are joined into one long string with no spaces.

Kjørt med verktøyets egen kode.

Binary back to text

Du skriver inn
Modus
binary to text
Binær
01001000 01101001
Du får
Tekst
Hi

The two bytes are 72 and 105, which are the letters H and i.

Kjørt med verktøyets egen kode.

Binary that cannot be decoded

Du skriver inn
Modus
binary to text
Binær
0100100
Du får
Melding
An error says the binary is incomplete.

Seven bits are not a whole byte. A string with a character other than 0 or 1, or a byte pattern that is not valid UTF-8 such as 11111111, is also rejected with its own message.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • See how a word or sentence is stored as bytes, for a lesson or a class.
  • Decode a binary message that a friend or a puzzle gave you.
  • Check how many bytes an accent or emoji needs in UTF-8.
  • Make binary text for a poster, a card or a code challenge.

Begrensninger

  • Only UTF-8 is used. The tool does not handle other encodings or character numbers.
  • The text box stops at 20,000 characters, and the binary box at 200,000 characters.
  • Binary input must be only 0 and 1 plus spaces or line breaks, must be complete bytes of eight bits, and must form valid UTF-8, or the tool shows an error.
  • The result is not secret. Anyone can turn it back into text, so do not treat it as encryption.
  • It converts one block of text at a time and does not read files.

Tips

  • Keep the grouping option on when you want to read the bytes yourself.
  • When decoding, copy all of the bits, because one missing digit shifts every byte after it.
  • Use Load example to see the direction and format the tool expects.

Kilder

Vanlige spørsmål

What does UTF-8 mean here?

UTF-8 is a standard way to store text as bytes. Plain English letters take one byte, accented letters usually take two, and emoji take four. This tool shows exactly those bytes, written as bits, so the output matches what a computer stores.

Why is my emoji so many bytes long?

UTF-8 uses between one and four bytes for each character. Emoji sit far along the Unicode list, so they need four. The waving-hand emoji in the example becomes the last four groups of eight bits.

Is this the same as converting a number to binary?

No. A number converter turns a value into base 2. This tool turns each text character into its UTF-8 bytes. The digit 5 as text, for example, is the byte for the character 5, not the binary number 101.

Does the tool upload my text?

No. Encoding and decoding use features built into your browser and the text stays on your device. Nothing is sent to a conversion server.

Why do I get an incomplete or invalid error?

Binary input needs full groups of eight bits and only the characters 0 and 1, plus spaces or line breaks. A missing digit, a stray letter, or bytes that are not valid UTF-8 each produce an error rather than garbled text.

Do I need spaces between the bytes?

No. When decoding, spaces and line breaks are ignored, so eight-bit groups can be written with or without spaces. When encoding, a checkbox decides whether the output has spaces between bytes.

Can I use it to hide a message?

It only changes how the message is written, and anyone with a converter can read it. For privacy use real encryption instead.

Hvordan konverterer jeg tekst til binær?

Velg «Tekst til binær», skriv inn teksten og konverter. Verktøyet koder UTF-8-byte som grupper på åtte biter. For å gjøre om igjen velger du «Binær til tekst» og limer inn grupper med åtte biter; mellomrom ignoreres.

Laster denne konverteren opp teksten min?

Nei. Koding og dekoding bruker innebygde nettleserfunksjoner. Ingenting sendes til en konverteringstjeneste. Inndata er begrenset til 20 000 teksttegn eller 160 000 binærbiter.

Kan jeg konvertere binærkode tilbake til tekst?

Ja. Velg «Binær til tekst» og lim inn binærbyte i grupper på åtte. Du kan bruke mellomrom og linjeskift mellom gruppene.

Støtter den aksenter og emojier?

Ja. Den koder UTF-8-byte, så tegn som ñ og emojier får riktig flerbytesekvens. Ugyldig eller ufullstendig UTF-8 varsles i stedet for å bli erstattet uten beskjed.

Er dette det samme som å konvertere et tall mellom tallsystemer?

Nei. Verktøyet koder tekst som UTF-8-byte. En basekonverterer endrer hvordan et heltall representeres; bruk den for tallverdier.