Character to Hexadecimal Converter

developer · number system

Convert Character to Hexadecimal with a fixed input and output format, step-by-step formulas under the result, and reference tables. Parsing matches the main hub (0b, 0x, leading 0 for octal; one optional . for fractional digits on numeric bases; single character for character mode).

Calculator

From: Character

To: Hexadecimal

Formulas

Enter a value → place-value expansion + division chain.

About Character

Character mode treats exactly one character as its Unicode (UTF-16 code unit) scalar value in the range 0–65535. There is no fractional part in this mode. Control and C1 characters are labeled by name in the output when relevant.

About Hexadecimal

Hexadecimal (base 16) uses 0–9 and A–F. This tool accepts an optional 0x prefix. One radix point is allowed; fractional digits use 16⁻¹, 16⁻², …. Each hex digit covers four bits, so it is compact for memory addresses, colors, and byte dumps.

How to convert character to hexadecimal

Three steps: symbols → the right math move for this pair → worked examples you can copy on paper. Numeric bases (binary, octal, decimal, hex) also support one radix point and digits after it; character mode stays a single code unit.

Step 1 — Identify the symbols

Input (Character): Exactly one symbol; its numeric code is the value you convert.

Output (Hexadecimal): Digits 0–9 plus letters A–F for values ten through fifteen.

Hex conversions use this letter-to-number map:

Hex digit → value (for place weights)
DigitValueDigitValue
0088
1199
22A10
33B11
44C12
55D13
66E14
77F15
Dev note
  • This tool uses the UTF-16 code unit (0–65535 for BMP).
  • 0x is a common prefix (e.g. 0xFF).

Step 2 — The Two-Step Method (via Decimal)

First express the left format as a decimal value (one optional . for a fractional part is allowed on numeric bases), then rewrite that value in the right format. The calculator automates both steps.

Part A — Into decimal

Look up the numeric code for your character. That integer is the decimal value for the next step.

Part B — Out of decimal

Repeated division by 16: each remainder is one hex digit; values 10– 15 become A–F. Read remainders from last step to first.

Fractional decimal values: convert the whole part with repeated division, then multiply the fractional part by the target base over and over; each integer you get is the next digit after the radix point (same idea the calculator shows in Formulas).

Step 3 — Worked examples

Two practice values in Character, converted to Hexadecimal using the same rules as Step 2.

Example 1

‘A’ (Character) → Hexadecimal.

Toward decimal

Character 'A'
→ code point (decimal) N₁₀ = 97

From decimal to output

Whole part — repeated division:
97 ÷ 16 = 6  R 1
6 ÷ 16 = 0  R 6

Read remainders bottom → top → 61

→ tool: 0x61

Verify: A0x61

Example 2

‘*’ (Character) → Hexadecimal.

Toward decimal

Character '*'
→ code point (decimal) N₁₀ = 42

From decimal to output

Whole part — repeated division:
42 ÷ 16 = 2  R 10 (A)
2 ÷ 16 = 0  R 2

Read remainders bottom → top → 2A

→ tool: 0x2a

Verify: *0x2a

Summary

To convert Character to Hexadecimal, the tool first parses your input strictly as character, producing a decimal value. For binary, octal, decimal, and hex, you may include one radix point and fractional digits; character input remains a single code unit with no dot. That value is formatted as hexadecimal using the same rules as the main Number System Converter (prefixes 0b, 0, 0x where applicable; character output uses symbolic names for common controls and requires a whole-number code point). Long fractional expansions are truncated to a fixed digit cap; ordinary floating-point rounding may appear in extreme cases.

Relationship context

Character input maps one code point to an integer, which is then shown in hexadecimal. That integer is the numeric value the character occupies in UTF-16 (BMP code units 0–65535).

Conversion tables

Character (input)Hexadecimal (output)
U+0030 (0)0x30
U+0031 (1)0x31
U+0041 (A)0x61
U+0061 (a)0x61
U+007E (~)0x7e
U+00FF (ÿ)0xff
Character (input)Hexadecimal (output)
U+0100 (Ā)0x101
U+0200 (Ȁ)0x201
U+0400 (Ѐ)0x450
U+0800 (ࠀ)0x800
U+1000 (က)0x1000
U+20AC (€)0x20ac
U+FFFF (￿)0xffff

More number system pairs

Other fixed input/output converters use the same parsing rules as the hub. Open any pair for the same calculator layout and reference tables.