Hex JSON Decoder & Formatter

Read a JSON payload from a hexadecimal protocol dump. Convert the hex representation back into bytes before formatting the JSON document.

Input: Hexadecimal byte valuesResult: Formatted JSON text

Text input

Run to see the result

Examples

A support ticket with a zero-prefixed identifier

Input

7b227469636b6574223a223030313233222c227072696f72697479223a2268696768227d

Expected answer

JSON
{
    "ticket": "00123",
    "priority": "high"
}
An observatory reading with a negative temperature

Input

7b2273746174696f6e223a2264656d6f2d6f627365727661746f7279222c2274656d706572617475726543223a2d31322e352c226f70656e223a66616c73657d

Expected answer

JSON
{
    "station": "demo-observatory",
    "temperatureC": -12.5,
    "open": false
}
A café menu with Unicode and a decimal price

Input

7b226974656d223a22636166c3a9222c227072696365223a332e352c2263757272656e6379223a22455552227d

Expected answer

JSON
{
    "item": "café",
    "price": 3.5,
    "currency": "EUR"
}
A safe webhook retry policy

Input

7b2274696d656f75744d73223a353030302c2272657472696573223a322c22656e61626c6564223a747275657d

Expected answer

JSON
{
    "timeoutMs": 5000,
    "retries": 2,
    "enabled": true
}
An image manifest with a null caption

Input

7b227769647468223a3634302c22686569676874223a3438302c2263617074696f6e223a6e756c6c7d

Expected answer

JSON
{
    "width": 640,
    "height": 480,
    "caption": null
}
A release note with an embedded newline

Input

7b2276657273696f6e223a22322e312e30222c226e6f746573223a224669786564207061727365725c6e4164646564207465737473227d

Expected answer

JSON
{
    "version": "2.1.0",
    "notes": "Fixed parser\nAdded tests"
}
An empty search result

Input

7b22726573756c7473223a5b5d2c22746f74616c223a307d

Expected answer

JSON
{
    "results": [],
    "total": 0
}

How the result is produced

  1. Hex to Text & Bytes Converter
  2. JSON Formatter

Conventions and limitations

This page accepts hex bytes separated by spaces. The recovered bytes must contain valid JSON; unrelated binary protocols cannot be made into JSON by formatting.

Related tools

Browse code tidy tools