Back to CTF Tools

Hex Encoder/Decoder

Convert between text and hexadecimal

Hex Encoder/Decoder

Convert between text and hexadecimal representation with multiple formatting options for CTF challenges

Input

Enter text to encode using Plain Hex

"Hello" → 48656c6c6f

Output

Hex Encoded result

Quick Examples

Click any example to try it

Simple Text

plain

Text:

Hello World!

Hex:

48656c6c6f20576f726c6421

CTF Flag

plain

Text:

CTF{hex_is_easy}

Hex:

4354467b6865785f69735f656173797d

Spaced Format

spaced

Text:

flag

Hex:

66 6c 61 67

Escaped Format

escaped

Text:

test

Hex:

\x74\x65\x73\x74

URL Hex

percent

Text:

admin

Hex:

%61%64%6d%69%6e

Binary Data

prefixed

Text:

ABC

Hex:

0x414243

ASCII to Hex Reference

Common characters and their hexadecimal values

20
!
21
"
22
#
23
$
24
%
25
&
26
'
27
(
28
)
29
*
2A
+
2B
,
2C
-
2D
.
2E
/
2F
0
30
1
31
2
32
3
33
4
34
5
35
6
36
7
37
8
38
9
39
:
3A
;
3B
<
3C
=
3D
>
3E
?
3F
@
40
A
41
B
42
C
43
D
44
E
45
F
46
G
47
H
48
I
49
J
4A
K
4B
L
4C
M
4D
N
4E
O
4F
P
50
Q
51
R
52
S
53
T
54
U
55
V
56
W
57
X
58
Y
59
Z
5A
[
5B
\
5C
]
5D
^
5E
_
5F
`
60
a
61
b
62
c
63
d
64
e
65
f
66
g
67
h
68
i
69
j
6A
k
6B
l
6C
m
6D
n
6E
o
6F
p
70
q
71
r
72
s
73
t
74
u
75
v
76
w
77
x
78
y
79
z
7A
{
7B
|
7C
}
7D
~
7E

CTF Tips for Hex Encoding

  • • Hex is often used to represent binary data in CTF challenges
  • • Look for hex patterns in network traffic and file dumps
  • • Try different hex formats if standard decoding fails
  • • Hex can hide executable code, images, or other file types
  • • Check for hex-encoded SQL injection payloads
  • • Some CTFs use hex to obfuscate flag formats
  • • Combine with other encodings for multi-layer challenges