Hexadecimal Engine•Base-16 Radix & Byte Analysis

tools.decimalToHex

10進数(整数・小数)を16進数(0x)へ変換。バイト区切り、ASCII文字デコード、RGBカラープレビューおよび除算手順を表示します。

RGB Color Preview#0000FF
CSS: rgb(0, 0, 255)
R: 0 G: 0 B: 255
Sample values:
Hexadecimal (0x)
0xFF
Byte Spaced FormatFF
ASCII Characterÿ (255)
32-Bit Padded0x000000FF
calc.copy
fx

calc.steps — Base-16 Proof

Type any decimal value above to generate step-by-step arithmetic proof.

Hexadecimal & Decimal Cross Reference

Standard Hex values, Binary equivalents, and character mappings.

DecimalHex (0x)Binary FormNotesAction
00x00000 0000Null
100xA0000 1010Ten
150xF0000 1111Fifteen
160x100001 000016¹
320x200010 0000Space (ASCII 32)
650x410100 0001'A' (ASCII 65)
2550xFF1111 11118-bit Max (255)
40950xFFF1111 1111 111112-bit Max
655350xFFFF16-bit 1s16-bit Max
167772150xFFFFFF24-bit 1sWhite (#FFFFFF)

Frequently Asked Questions

Everything you need to know about decimal conversions, accuracy, and formulas.

01How do you convert decimal to hexadecimal?▼

To convert decimal to hex: repeatedly divide the decimal number by 16 and write down the remainders. For remainders 10 through 15, replace with hexadecimal letters A through F (10=A, 11=B, 12=C, 13=D, 14=E, 15=F). Read the remainders from bottom to top to get the hexadecimal notation.

02What is the prefix '0x' in hexadecimal?▼

The '0x' prefix is a programming convention used in languages like JavaScript, C, Python, and Rust to indicate that the following characters represent a base-16 hexadecimal number rather than a standard base-10 decimal.

03How do hexadecimal numbers represent web colors?▼

In web design, colors are encoded as 24-bit hexadecimal integers `#RRGGBB`. The first two hex digits represent Red (0-255), the next two represent Green, and the last two represent Blue. For example, decimal 16711680 is hex `0xFF0000` (Pure Red).

Copied to clipboard!