Neatbo.

Binary and text converter

Encode UTF-8 text or file bytes as eight-bit groups or a MATLAB numeric row vector assignment; decode bit text to exact bytes.

Browser-local processingInputText / file / bitsOutputBITS TXT / MATLAB .m / BINUp to 2 MiB per file · File limit: 1
  1. 1Add input
  2. 2Adjust settings
  3. 3Get your result

Tool input and files are processed in this browser without being uploaded.

Your input

Inputs are kept temporarily in this tab when switching tools. Refreshing or closing clears them; large results may need to be regenerated.

⌘ / Ctrl + Enter to run

Binary byte conversion

Conversion direction
Encoded output format

Paste UTF-8 text or choose any file. The original file bytes are encoded unchanged.

Enter text to encode.

Each eight bits represent one byte, not necessarily one Unicode character. This is encoding, not encryption.

Input source
0 characters · 0 bytes
Preparing the tool…

Before you start

Convert UTF-8 text or any file into eight-bit byte groups or a MATLAB assignment that creates one numeric 0/1 row vector. Decode bit text back to exact bytes.

How to use this tool

  1. Choose Encode or Decode. For encoding, select byte groups or a MATLAB numeric row vector assignment.
  2. For encoding, enter UTF-8 text or select any file. For decoding, paste 0/1 bit text or choose a UTF-8 .txt or .bits file.
  3. Convert, preview, then copy or download the full bit text or MATLAB .m file; decoding preserves exact bytes.

Supported inputs and limits

Paste up to 1 MiB of text or select one file up to 2 MiB. Bit-text files must be UTF-8 text.

Use only 0 and 1, with a multiple of eight bits. ASCII whitespace is ignored. Prefixes, offsets and partial bytes are not parsed.

MATLAB output represents UTF-8 bytes, so non-ASCII text may differ from MATLAB character-code bits. Conversion runs in your browser; binary encoding is not encryption.

Worked example

Example input

A
Example options
{"mode":"encode"}

Example output

01000001

When something does not work

For invalid bit text, check that each byte has eight 0/1 digits and remove prefixes or offsets. For binary output, download decoded.bin.

Frequently asked questions

Can I encode a binary file?

Yes. Choose File and Encode; the original file bytes become eight-bit groups without text decoding.

What if decoded bytes are not text?

Download decoded.bin to retain the exact bytes. A text preview and decoded.txt appear only for readable UTF-8.

Can I pass the bits to a MATLAB function?

Choose MATLAB numeric row vector while encoding, then run the assignment. It creates bits as a row vector of numeric 0 and 1 values. The source text is encoded as UTF-8 bytes, which can differ from MATLAB character codes for non-ASCII text.

Is my input sent to a server?

No. Conversion happens in your browser. Save your output before closing the tab.

Documentation & further reading

Related tools