Decimal to Hex Converter

Convert Decimal to Hex instantly in your browser.

0 characters

0 characters

Everything is converted in your browser. Nothing you paste is uploaded or stored.

Worked example

Each row shows a short sample written as Decimal, and the same value converted to Hex.

Decimal input Hex output
72 105 48 69
83 71 53 47
116 111 111 108 74 6F 6F 6C

In-depth guide

decimal to hexadecimal: converting byte values

Convert byte-sized numbers, preserve their boundaries and understand the input syntax.

Last verified: Plain-text version of this guide

Key figures at a glance

Accepted byte range
0–255
Output grouping
The output uses two uppercase hex digits per byte.

What this page converts

This page rewrites each decimal byte value as hexadecimal. Paste values into the input box; the result updates in your browser. Each token must represent a whole byte between 0 and 255. A sequence of bytes is not interpreted as one large integer, signed value or text string.

Read and group the input

Decimal uses digits 0–9. Separate byte values with spaces: 65 66 is two bytes, while 6566 is an out-of-range single token. Leading zeros do not change a token's value; there is no automatic decimal chunking.

For example, 165 has decimal place values 1 × 100 + 6 × 10 + 5. The output uses two uppercase hex digits per byte.

Worked examples

These rows were calculated with the actual browser engine and checked against its PHP mirror. Spaces in the output preserve byte boundaries.

Input Result
0 00
5 05
42 2A
165 A5
255 FF
0 65 255 00 41 FF

Limits and round-trip checks

Fractions are rejected. Commas, colons, semicolons, underscores and hyphens are separators, so a minus sign does not request signed arithmetic. Do not paste thousands separators or negative numbers expecting their mathematical meaning. Invalid digits, oversized bytes and incomplete compact groups produce an error.

Use the reverse converter to check the same byte sequence. Padding and letter case may normalize, so compare values and boundaries rather than original spelling. For character encoding use text to binary.

Frequently asked questions

Is my data sent anywhere?

No. The conversion runs entirely in your browser using JavaScript. Nothing you paste leaves your device, is logged, or is stored.

How should I separate values?

Spaces work, and so do commas, colons and semicolons. For binary, hex and octal you can also paste a single unbroken run of digits — it is split into bytes automatically.

Does it handle emoji and non-English text?

Yes. Text is treated as UTF-8, so accented characters, Chinese, Tamil and emoji all convert correctly. They simply take more than one byte each.

Why did I get an error?

The input contained a character that is not valid for the source format, a value above 255, or a run of digits that does not divide evenly into bytes. The message names the specific token so you can find it.

Sources

  1. ECMA-262 — parseInt and Radix Parsing
  2. ECMA-262 — Number.prototype.toString
  3. NIST — Eight Bits per Byte

This guide explains published rules in plain language. It is not financial, legal or official advice — rules change, so confirm with the agency linked above before you commit.

Related converters