Base Converter

Convert between decimal, binary, hexadecimal, and text. Live, bidirectional.

Decimal
Binary
Decimal
Hexadecimal
Text
Binary (8-bit per char)
Text
Hexadecimal
Binary
Hexadecimal

How to use the base converter

  1. Choose the conversion type using the tabs at the top: Decimal ↔ Binary, Decimal ↔ Hex, Text ↔ Binary, Text ↔ Hex, or Binary ↔ Hex.
  2. Type your value into either input field. The result appears instantly in the other field — no button needed.
  3. Use the Swap button to reverse the direction. Use the Copy button to copy the result to your clipboard.
  4. Use the hint chips below the inputs for quick example values.

Frequently asked questions

How do I convert decimal to binary?
Select the Decimal ↔ Binary tab and type your number. The binary result appears instantly. For example, 42 decimal → 101010 binary. The conversion works both ways — type a binary number to get the decimal.
What is binary and why does it matter?
Binary (base-2) uses only 0 and 1. Every piece of data in a computer is ultimately stored in binary. Understanding binary is fundamental to programming, digital electronics, and computer science.
What is hexadecimal?
Hexadecimal (base-16) uses digits 0–9 and letters A–F. It's a compact way to represent binary — one hex digit equals exactly 4 binary bits. Hex is used in color codes (like #FF5733), memory addresses, and many programming contexts.
Can I convert text to binary?
Yes. Select the Text ↔ Binary tab. Each character in your text is converted to its 8-bit ASCII binary representation. For example, the letter 'A' becomes 01000001.
Can I convert multiple numbers at once?
Yes. For decimal and binary tabs, you can enter multiple space-separated values. Each is converted independently.
Is this converter free?
Yes — completely free. No signup, no account, runs entirely in your browser, no data stored. yhile.com is free forever.

More free tools

🔖 Bookmark this for quick access!