Output as
fetch
const res = await fetch("https://api.example.com/users", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer xyz"
},
body: "{\"name\":\"Alice\",\"email\":\"[email protected]\"}"
});
const data = await res.json();The parser handles -X / -H / -d / --data / -u / --user / -b / -A / -e and backslash line continuation. Pathological flags (file uploads, mTLS, env-var splicing) may not round-trip exactly.
All processing runs in your browser — no files or inputs are uploaded to a server.
Related tools
HTTP Status Code Reference
DeveloperSearchable HTTP status code reference (1xx → 5xx) with short descriptions and typical use cases. Filter by class, copy a code, link to the IETF spec.
JSON ↔ YAML Converter
DeveloperConvert between JSON and YAML in either direction. Clear error messages with line numbers.
CSV ↔ JSON Converter
DeveloperConvert between CSV and JSON, both directions. RFC 4180 parsing handles quoted fields and embedded newlines; delimiter and header options are configurable.
JSON Formatter
DeveloperFormat and validate JSON. Indented or minified output, with clear error messages.