Skip to content
Free Calculator logoFree Calculator

Text to Binary Converter

Convert text to UTF-8 binary bytes and binary back to text.

In short

Convert text to UTF-8 binary bytes and binary back to text.

Formula: Text is encoded as UTF-8 bytes (RFC 3629); each byte is written as 8 binary digits. Decoding reverses this and rejects invalid UTF-8.

Press Calculate, or Enter in any field.

Encode “Hi”

H = 01001000, i = 01101001.

Enter text or binary to convert.

What this calculator does

Convert text to UTF-8 binary bytes and binary back to text. Formula, worked example, sources, FAQs and limitations included.

You enter direction and text or binary bytes, and the text to binary converter shows the answer along with the working, so you can check it or try other numbers.

The page shows the formula, a numeric worked example, and the assumptions that affect this text tools calculation.

Inputs and what they mean

Direction
— choice value.
Text or binary bytes
— text value.

How to use it

  1. Enter each value in the unit shown next to the box (use the unit converter first if your numbers are in other units).
  2. Check the breakdown to see every intermediate step.
  3. Read the limitations before relying on the result.

Formula

Source: IETF RFC 3629, UTF-8, a transformation format of ISO 10646.

ASCII characters use one byte; other characters use two to four bytes.

Text is encoded as UTF-8 bytes (RFC 3629); each byte is written as 8 binary digits. Decoding reverses this and rejects invalid UTF-8.

Inputs used: Direction, Text or binary bytes.

Worked example

Encode “Hi”

  1. H is U+0048 = 72 = 01001000.
  2. i is U+0069 = 105 = 01101001.

Reading the result

The headline figure is the main answer. Any breakdown underneath shows the parts that make it up, so you can check the working and see what changes when you adjust an input.

Limitations and assumptions

  • UTF-8 only; no UTF-16 or legacy code pages.
  • Up to 2,000 characters of input.
  • Runs entirely in your browser. Conversions are exact for the stated encoding and bit width.
  • The result depends on the values you enter for this text to binary converter; it does not supply missing rates, rules, prices, dates, or assumptions for you.

Reference: IETF

Last reviewed:

Common questions

Why does an emoji produce four bytes?

UTF-8 encodes characters beyond U+FFFF with four bytes.

What separators can I use when decoding?

Spaces, commas or new lines — or no separator, as long as the total digit count is a multiple of 8.

Is this ASCII?

UTF-8 is identical to ASCII for the first 128 characters, so plain English text matches ASCII binary.

How do I use the Text to Binary Converter?

Enter the required values for Direction, Text or binary bytes. The calculator applies the formula on this page and shows the main result with any supporting breakdown so you can check the arithmetic.

What formula does the Text to Binary Converter use?

Text is encoded as UTF-8 bytes (RFC 3629); each byte is written as 8 binary digits. Decoding reverses this and rejects invalid UTF-8. The visible formula section above lists the calculation path and the edge cases the page handles, so the result can be checked without relying on the form alone.

Can the Text to Binary Converter be used for exact decisions?

Use it as a calculation aid, not as a substitute for checking the underlying rule, contract, policy, or professional advice that applies to your situation. When a result depends on local rules, personal details, prices, or dates, enter those values yourself and confirm them before acting.

Sources

Method based on IETF.

Cite this page

APA

Free Calculator. (2026, November 3). Text to Binary Converter. https://freecalculator.tech/tools/text-to-binary-converter

MLA

"Text to Binary Converter." Free Calculator, 3 Nov. 2026, https://freecalculator.tech/tools/text-to-binary-converter.

Link

Text to Binary Converter — Free Calculator, https://freecalculator.tech/tools/text-to-binary-converter

Related tools

Count words, characters, sentences and paragraphs.

Text Tools

Count Unicode characters, bytes, lines and words.

Text Tools

Count sentences and average words per sentence.

Text Tools

Estimate reading time at a chosen reading speed.

Text Tools

Convert text among common writing and code cases.

Text Tools

Remove repeated lines while preserving their first occurrence.

Text Tools