Number base converter | Convert Numbers with Ease
Convert numbers between bases: binary, decimal, octal, and hexadecimal. Includes detailed conversion steps for learning number systems.
Convert numbers between different number bases (decimal, binary, hexadecimal, etc.)
Input Options
Output Options
Result:
How to Use
- Enter your number in the input field
- Select the base of your input number (e.g., 16 for hexadecimal)
- Choose the desired output base
- Click Convert to see the result
Key Features
- Support for bases 2 through 36
- Common base conversions (binary, octal, decimal, hex)
- Case-insensitive input for letters
- One-click result copying
Common Use Cases
- Converting between decimal and binary
- Working with hexadecimal color codes
- Computer science calculations
- Digital electronics work
Use this tool from your AI agent
Free JSON API and Model Context Protocol (MCP) server. No signup, no API key, CORS open. Designed for Claude, ChatGPT, Cursor, scripts and frontend apps.
curl -X POST https://mate.tools/api/v1/number-base.php \
-H "Content-Type: application/json" \
-d '{"value":"ff","from_base":16,"to_bases":[2,10,16,"roman"]}' import urllib.request, json
req = urllib.request.Request(
"https://mate.tools/api/v1/number-base.php",
data=json.dumps({"value":"ff","from_base":16,"to_bases":[2,10,16,"roman"]}).encode(),
headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(req) as r:
print(json.load(r)) const r = await fetch("https://mate.tools/api/v1/number-base.php", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"value":"ff","from_base":16,"to_bases":[2,10,16,"roman"]}),
});
console.log(await r.json()); Add to claude_desktop_config.json (Claude Desktop), ~/.cursor/mcp.json (Cursor), or any other MCP-compatible client:
{
"mcpServers": {
"mate-tools": {
"command": "npx",
"args": ["-y", "@mate-tools/mcp-server"]
}
}
} Frequently Asked Questions
A number base (or radix) determines how many unique digits are used to represent numbers. For example, binary (base-2) uses only 0 and 1, while decimal (base-10) uses digits 0-9.
Common bases include: Binary (2), Octal (8), Decimal (10), and Hexadecimal (16). These are frequently used in computer science and digital systems.
For bases larger than 10, letters A-Z are used to represent digits after 9. For example, in hexadecimal, A=10, B=11, ..., F=15.