Skip to main content
Back to Utilities
CONVERTER

Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal instantly. Click any result to use it as the new input.

Common Values

DecimalBinaryOctalHex
0000
1111
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
12711111111777F
1281000000020080
25511111111377FF

Radix conversion for systems, SQL and low-level debugging

Humans default to decimal while computers expose binary at the electrical level and hex at the human-readable boundary. Octal survives most visibly in Unix permission triplets. When you read memory dumps, colour pickers, packet captures or warehouse error codes, you constantly translate between bases. A focused converter removes mental arithmetic mistakes when you are already tired during an outage. This guide explains typical professional uses, cautions about signedness and padding and points to adjacent Datamata utilities that complete common workflows.

Binary

Bitmasking, feature flags and hardware docs.

Octal

chmod literals such as 0755 on POSIX systems.

Decimal

Business metrics and default JSON numbers.

Hexadecimal

UTF-8 byte views, UUIDs and #RRGGBB colours.

Click-to-chain workflow tips

The interactive client lets you promote any computed cell back to the input so you can hop bases iteratively while narrating a postmortem. That pattern is faster than retyping when you are demonstrating a transform to a teammate over a call. Keep leading zeros in mind: they do not change numeric value but they do change string equality checks in some scripting contexts.

Pairing with hashing and encoding tools

Hash outputs are almost always shown as hex. Paste a digest into this converter when you need alternate representations for documentation. When payloads mix hex with Base64 armouring, use the Hash Generator and Base64 Encoder & Decoder deliberately in sequence rather than assuming they are interchangeable representations of the same underlying bytes.

Working with SQL parameters and string comparisons

In real pipelines, radix conversions often exist to satisfy SQL types. Some systems expect numeric values, while others treat identifiers as strings to preserve leading zeros and to avoid implicit integer truncation. If you are building ad hoc WHERE clauses, decide whether your input should be quoted. For example, a value that looks like 0xFF might be stored as the text “0xFF” in a log table, while another dataset stores the same concept as an integer. The easiest way to prevent silent mismatch is to prototype the conversion in the SQLite Playground, then use the formatted output in your query workflow. When you paste many identifiers, pair this converter with the SQL IN Clause List Formatter so your joins fail loudly instead of returning partial matches.

Teaching and interviewing

Short exercises such as “convert this permission mask” or “what is the hex of this small decimal” show up in platform interviews. Having a trustworthy scratchpad reduces anxiety and keeps the focus on reasoning about bits, not arithmetic slips. For cron-style time reasoning after you finish numeric work, switch tools to the Cron Expression Builder rather than overloading radix conversion with calendar logic.

Padding, width and warehouse exports

ETL jobs sometimes emit identifiers as zero-padded hex strings while dashboards show plain decimals. When you reconcile two exports, convert both sides through the same base before comparing string equality. If a vendor documents bit masks as binary literals with a 0b prefix, strip decorative prefixes in your head or in a scratch buffer, then paste the digits here so everyone on the call sees the same decimal and hex side by side. Document the base you used in ticket titles so reviewers can reproduce the conversion without guessing.

Frequently asked questions

Same hub cluster

Encoding, time and IDs

Encode URLs and Base64, convert Unix or Excel serial dates, generate UUIDs and ULIDs, hash strings and read cron schedules.

When to use this cluster: Use this cluster when encodings, timestamps, identifiers or cron strings need to line up across services, logs and tickets.

Open cluster on hub
Number Base Converter — Binary, Octal, Decimal, Hex | Datamata Studios | Datamata Studios