Skip to main content
AllDevToolsHub
🔢

Text to Binary / ASCII Codes

100% Local

Convert text to binary, hex, octal, or decimal ASCII codes and back.

Text to Binary / ASCII Codes
Text ↔ Binary / Hex / Octal / ASCII100% client-side
5 chars
H0100100072
e01100101101
l01101100108
l01101100108
o01101111111
01001000 01100101 01101100 01101100 01101111
Try:
This tool runs entirely in your browser. Your input is never uploaded, logged, or sent to AllDevToolsHub or anyone else, and it keeps working offline once the page has loaded.

Type text or paste binary. Conversion updates instantly.

Overview

What is Text to Binary / ASCII Codes?

Convert text into 8-bit binary, hexadecimal, octal, or decimal ASCII codes with configurable separators. Decode back with auto-detection and an ASCII table.
FAQ

Frequently Asked Questions

Reference

Technical Deep Dive

ENCODERS & DECODERS

Text to Binary / ASCII Codes

Convert any text into binary (8-bit), hexadecimal, octal, or decimal ASCII codes with configurable separators. Decode binary/hex/octal back to text with auto-detection. Includes a full interactive ASCII table (0–127) with decimal, hex, octal, binary, and character columns, click any row to copy.

🧬

Spec-Compliant

Follows the RFC or de-facto encoding rules, no custom dialects, no surprises.

🔄

Lossless Round-Trip

Encode then decode and you get back exactly what you put in, byte for byte.

📡

Handles Edge Cases

Unicode, padding, invalid input, surfaced clearly instead of silently mangling output.

01 Encoding Efficiency Matrix

Radix Name Base Digits / Byte Example ('H')
Binary28 bits01001000
Octal83 digits110
Decimal10~3 digits72
Hexadecimal162 digits48

02 Serialization Pipeline

1
UTF-8 Transcoding The input text is mapped to a Uint8Array using the browser's native TextEncoder interface.
2
Radix Projection Each byte in the array is converted to its string representation in the chosen base (2, 8, 10, or 16).
3
Padding & Separation Leading zeros are prepended to ensure fixed bit-width, and user-defined separators are injected between tokens.

You Might Also Need