String to Binary Converter

Encodes each character as its Unicode code point in binary, zero-padded to 8 bits and space-separated, the classic 'text to binary' conversion. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-22

Overview

Introduction

Seeing text represented as binary digits is a classic exercise for understanding how computers store characters.

This tool converts each character to its binary code point instantly.

What Is String to Binary Converter?

A converter that encodes each character's Unicode code point as an 8-bit-minimum binary number, space-separated.

It runs entirely client-side as part of this site's String Tools collection, so nothing you paste is ever uploaded to a server.

How String to Binary Converter Works

Each character's code point is converted to base-2 and left-padded with zeros to at least 8 digits.

The transformation happens synchronously in JavaScript the moment you type, with no network round trip involved.

When To Use String to Binary Converter

Use it for teaching or learning how character encoding works, or for puzzle and novelty text generation.

It's a fast way to get the answer without opening a code editor, a REPL, or writing a one-off script just to check.

Features

Advantages

  • Zero-padding keeps output aligned for ASCII text.
  • Handles the full Unicode range, not just ASCII.

Limitations

  • Represents code points, not UTF-8 byte values; for the latter, use Convert a String to Bytes.

Examples

Converting short text

Input

Hi

Output

01001000 01101001

'H' (72) and 'i' (105) are each shown as 8-bit binary.

Best Practices & Notes

Best Practices

  • Use Convert a String to Bytes instead if you need the actual UTF-8 byte-level encoding rather than code points.

Developer Notes

This is a thin wrapper around a shared radix-encoding helper called with radix 2 and a minimum padding width of 8, shared with the octal, decimal, and hex conversion tools.

String to Binary Converter Use Cases

  • Teaching or learning how character encoding works
  • Generating binary-encoded novelty text
  • Quickly checking a character's binary code point

Common Mistakes

  • Assuming this represents UTF-8 byte values rather than Unicode code points.

Tips

  • Use Convert Binary to a String to decode the result back to text.

References

Frequently Asked Questions