Skip to main content
>_devtools

HTTP Headers to JSON & Back

Convert raw HTTP header lines to JSON or JSON objects to header lines, with duplicate and folded header handling.

What this does

Convert raw HTTP header lines to JSON or a JSON object to header lines. Choose a direction, set duplicate-header behavior, and review the converted text.

Example

Input: Content-Type: application/json
Output: {"Content-Type":"application/json"}

Limits and behavior

  • Duplicate header names can be joined, kept as arrays or replaced.
  • Malformed JSON or header lines show an error and clear the output.