Hex Content Decoder

Translates hexadecimal bytes in text back to raw bytes. This format is used by SNORT for representing hex within ASCII text.

Input: TextResult: Binary bytes

Text input

Run to see the result

Examples

Reconstruct an HTTP header terminator

Input

GET / HTTP/1.1|0d 0a|Host: example.org|0d 0a 0d 0a|

Expected answer

UTF-8 text · exact bytes
GET / HTTP/1.1
Host: example.org

Read an SMB protocol signature

Input

|ff|SMB|72 00|

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
00000000ff 53 4d 42 72 00.SMBr.
Recover quoted JSON from a mixed content pattern

Input

{|22|status|22 3a 22|ready|22|}

Expected answer

UTF-8 text · exact bytes
{"status":"ready"}
Preserve literal pipes outside a valid hex block

Input

left|right|3d|ok

Expected answer

UTF-8 text · exact bytes
left|right=ok
Inspect a zero-delimited key and value

Input

user|00|Ada|00|

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000075 73 65 72 00 41 64 61 00user.Ada.

e.g. foo|3d|bar becomes foo=bar.

Related tools

Browse data format tools