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.
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
- Enter each value in the unit shown next to the box (use the unit converter first if your numbers are in other units).
- Check the breakdown to see every intermediate step.
- 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”
- H is U+0048 = 72 = 01001000.
- 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
Free Calculator. (2026, November 3). Text to Binary Converter. https://freecalculator.tech/tools/text-to-binary-converter
"Text to Binary Converter." Free Calculator, 3 Nov. 2026, https://freecalculator.tech/tools/text-to-binary-converter.
Text to Binary Converter — Free Calculator, https://freecalculator.tech/tools/text-to-binary-converter