Hex to Binary

Enter a hexadecimal number and convert it to binary, decimal, and octal. Results appear instantly in your browser.

Hex to Binary Converter

This tool converts hexadecimal (base 16) numbers into their binary (base 2), decimal (base 10), and octal (base 8) equivalents. It is useful when you need to see the individual bit pattern of a hex value for debugging, hardware programming, or protocol analysis.

The conversion runs entirely in your browser using JavaScript's BigNumber library for precision.

How to use

  1. Type or paste a hexadecimal number into the input field (e.g. 1A2F or FF).
  2. Click Convert to see the binary, decimal, and octal results.
  3. Use the Copy button to copy the binary result to your clipboard.
  4. Click Clear to reset all fields.

Hex to binary relationship

Each hexadecimal digit maps directly to four binary digits. This makes hex a convenient shorthand for binary: F = 1111, A = 1010, and so on. For example, 1A2F in hex becomes 1101000101111 in binary.

Example

Hexadecimal: 1A2F
Binary:      1101000101111
Decimal:     6703
Octal:       15057

MCP integration

MCP (Model Context Protocol) lets AI agents and apps discover and run Coding.Tools utilities for repeatable conversions, formatting, hashing, and generation workflows.

MCP tool name: hex-to-binary

MCP endpoint: https://coding.tools/mcp

Call tools/list first. Each tool entry includes inputSchema, outputSchema, and examples so an AI agent or client can build valid arguments without guessing.

For tools/call, read result.content[0].text for the display value and result.structuredContent for machine parsing. Tool-level failures return isError: true; protocol failures return a JSON-RPC error.

Example tools/call request:

curl -s https://coding.tools/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"hex-to-binary","arguments":{"input":"F0A"}}}'

Most text and data tools accept an input string plus optional options. Browser-only image tools are listed for discovery and return a web UI link when they need browser image APIs.