⚡
usefultools.dev
T→0x

Text to Binary, Octal, Decimal & Hex Converter

NEW

Convert text to binary, octal, decimal or hex bytes and back, with UTF-8 support, or convert integers between bases 2 to 36, in your browser.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Output options

7 characters · 10 bytes in UTF-8

⚡

Quick Examples

Typical inputs and the results this tool produces.

Text
Hi (binary)
01001000 01101001
UTF-8
😀 (hex)
F0 9F 98 80
Decode
72 101 108 108 111 (decimal)
Hello
Number
zz (base 36 to base 10)
1295
📖

Overview

Text to Binary, Octal, Decimal & Hex Converter turns any text into the numbers of its bytes and turns those numbers back into text. Letters, accents and emoji all work, because the text is encoded as UTF-8 first: a plain letter is one byte, é is two bytes and 😀 is four.

Developers, students and anyone reading a hex dump can choose the number system, the separator (space, comma, new line or none), padding and a 0x, 0b or 0o prefix. A second mode converts a whole integer between any two bases from 2 to 36 with exact big-number arithmetic.

Everything runs in your browser, so the text you convert is never uploaded. If a number is not valid for the chosen base or a byte is above 255, the message names the offending token.

Why use this tool?

  • UTF-8 aware: emoji and accents convert correctly
  • Both directions with clear errors
  • Separator, padding and prefix options
  • Exact big integers in bases 2 to 36
  • Private: runs in your browser
⭐

Features

🔁

Both directions

Encode text to numbers or decode numbers back to text, and swap with one click.

🌍

UTF-8 bytes

Characters outside ASCII become two to four bytes, shown exactly as stored.

🎛️

Format options

Choose space, comma, new line or no separator, pad bytes and add a 0x, 0b or 0o prefix.

🔢

Bases 2 to 36

Number mode converts integers of any size with BigInt and lists common bases.

⚠️

Named errors

Invalid digits, bytes above 255 and broken UTF-8 are reported with the offending token.

📋

Copy result

Copy the converted text or numbers with one button.

🛠️

How to Use

1

Pick a mode

Use Text ↔ bytes for text, or Number bases 2–36 for converting an integer.

2

Choose the system

Select binary, octal, decimal or hexadecimal, then the separator and other options.

3

Type or paste

Enter text to encode, or switch to Numbers → text and paste bytes separated by spaces or commas.

4

Copy the result

Check the output box and press Copy result.

🤔

Frequently Asked Questions