Skip to main content

Binary code translator

Translate text into binary or read binary as text. Choose UTF-8 or seven-bit ASCII explicitly; the tool never guesses.

Editing text → binary. Type in either box to change direction.

Source
Result
Enter text or binary to begin

UTF-8 stores text as bytes; a character can use several bytes. ASCII uses exactly 7 bits here. Binary accepts spaces, commas and line breaks, or a continuous stream at the selected width. Limits: 8,192 bytes and 131,072 source UTF-16 units. Text, spacing and an initial BOM are preserved.

PNG includes the complete binary and text, or asks for shorter input if it cannot fit. Control characters and backslashes are escaped in the image. Copy and text downloads preserve the actual text. Your input stays in this page; it is not uploaded or saved automatically.

Bytes and characters

UTF-8 represents text as bytes. Each byte appears as eight bits here, and one character may need several bytes. ASCII mode uses seven bits and accepts only characters from U+0000 through U+007F.

Binary input accepts spaces, commas and line breaks as separators. Every separated group must have the selected width. An uninterrupted bitstream must divide evenly into that width. Invalid groups or UTF-8 sequences stop conversion rather than returning a successful prefix.

Worked examples

A is 01000001 in UTF-8, hexadecimal 41 and decimal 65. In seven-bit ASCII it is 1000001. The letter é uses two UTF-8 bytes: 11000011 10101001, or C3 A9. 😀 uses F0 9F 98 80.

The text copy retains whitespace and control characters. The labeled inspection view escapes invisible characters so you can identify them; it does not change the copied bytes. A leading UTF-8 BOM is retained as U+FEFF.

Copying and local images

Download text keeps the complete validated text. The 1200×628 PNG is for short conversions and manual attachment. If the full content cannot fit at readable sizes, shorten it or use text instead.

Text stays in the open page. There is no automatic storage, share URL or upload. Public scripts and fonts are fetched from this site. Standards reviewed October 11, 2026; separator and size limits are application choices.

Sources

Frequently asked questions

Can I paste binary with commas?

Yes. Spaces, commas, CR and LF are accepted. Tabs and other whitespace are rejected, and mixed-width groups need correction.

Why does an emoji need several bytes?

UTF-8 uses a variable number of bytes per code point. A visible emoji can also contain several code points.

Does Swap reverse the bits?

Swap changes which editor is the source. It keeps the drafts and does not invert bits or select a different encoding.

What happens to invalid binary?

The tool identifies the source problem and disables current copy and image output until it is fixed.

Is my text sent to a service?

Conversion runs in this browser. The tool does not put text in storage, URLs or network requests.