DevTools Logo

HTTP/2 Frame Decoder

HTTP/2 Frame Decoder

Paste HTTP/2 frame hex to decode types, flags, streams, HPACK headers and connection findings.

Runs in your browser

Frame hex

Try an example

Decrypted, plaintext HTTP/2 frames only — TLS traffic cannot be decoded here. The client preface is skipped automatically.

Decoded frames

waiting for hex

Paste HTTP/2 frame hex to start decoding

Try a sample to see HEADERS, SETTINGS and RST_STREAM decoding.

Details

Browser devtools show HTTP/2 requests but hide the framing: a RST_STREAM storm, a WINDOW_UPDATE starvation bug or a SETTINGS disagreement is invisible. This tool walks the 9-byte RFC 7540 frame header byte-exactly, decodes each payload type and organizes frames by stream. HEADERS, PUSH_PROMISE and CONTINUATION blocks are decoded with the full RFC 7541 static table and the Appendix B Huffman code; dynamic-table entries are labelled rather than guessed, and you can supply known entries in the manual table pane. Wireshark-style offset columns and client/server direction markers are accepted, the client connection preface is skipped, and protocol errors are surfaced as findings while decoding continues. Frames, streams, HPACK and a flow-control ledger are available as tabs, with CSV/JSON export. Everything runs in the tab: TLS-encrypted traffic is out of scope, so paste decrypted frames only.

More examples

SETTINGS exchange

0000000604000000000000010000100000000300000064000000040000ffff
00000004010000000000
0000000408000000000000010000

Client preface followed by SETTINGS, a SETTINGS ACK and a connection WINDOW_UPDATE. The decoder names each setting id and reports the negotiated initial window.

RFC 7541 C.4.1 header block

828684418cf1e3c2e5f23a6ba0ab90f4ff

Static-table indexes for :method GET, :scheme http and :path /, plus a Huffman-encoded :authority literal. All four headers resolve without a dynamic table.

GOAWAY and PING echo

0000000860000000000102030405060708
0000000861000000000102030405060708
0000000d0700000000000000050000000073687574646f776e

A PING and its ACK share the same opaque bytes, so echo pairing is flagged. GOAWAY reports last stream 5, NO_ERROR and the UTF-8 debug data.

Examples

RFC 7541 C.4.1 — static plus Huffman

Input
828684418cf1e3c2e5f23a6ba0ab90f4ff
Output
:method: GET
:scheme: http
:path: /
:authority: www.example.com

Indexes 2, 6 and 4 are exact static-table entries; the :authority value is a Huffman-encoded literal with EOS padding.

Dynamic index without state

Input
828684be5886a8eb10649cbf
Output
:method GET · :scheme http · :path / · dynamic[62] unresolved · cache-control: no-cache

Index 62 refers to an entry created by an earlier request in the RFC example. Without that entry the tool labels it instead of inventing a header.

GOAWAY with debug data

Input
0000000d0700000000000000050000000073687574646f776e
Output
GOAWAY · last stream 5 · NO_ERROR · shutdown

The 8-byte prefix is last stream ID plus error code; the rest is debug data, shown as UTF-8 when valid and as hex otherwise.

About this tool

HTTP/2 replaces readable request lines with a binary framing layer. A connection is a sequence of 9-byte frame headers followed by typed payloads, interleaved across many streams. Browser devtools reconstruct the requests but throw away the evidence an SRE needs: RST_STREAM storms, WINDOW_UPDATE starvation, SETTINGS disagreements and malformed header blocks. This tool keeps that evidence. Paste a hex dump and it walks the frames byte-exactly, decodes the payloads and groups everything by stream ID.

The frame walk follows RFC 7540 §4.1: a 24-bit length, an 8-bit type, an 8-bit flag byte and a 31-bit stream ID with a reserved high bit. Payload decoders cover DATA, HEADERS, PRIORITY, RST_STREAM, SETTINGS, PUSH_PROMISE, PING, GOAWAY, WINDOW_UPDATE, CONTINUATION, ALTSVC, ORIGIN and extension types. Flags are named per type (END_STREAM, END_HEADERS, PADDED, PRIORITY, ACK), padding and priority fields are consumed before the header fragment, and SETTINGS values are printed with their registered names. Known protocol violations become findings instead of stopping the decode.

HEADERS, PUSH_PROMISE and CONTINUATION fragments are decoded as HPACK (RFC 7541). The complete 61-entry static table resolves indexed fields such as :method GET (index 2) or :status 200 (index 8); string literals use the full RFC 7541 Appendix B Huffman code, including the EOS padding warning. Dynamic-table references are deliberately not guessed: a capture rarely starts at the connection preface and an index into an unseen table cannot be reconstructed honestly. Those fields are labelled dynamic[62] unresolved until you supply the entry in the manual table pane; index 62 always denotes the newest entry, and insertions are tracked with FIFO eviction at the negotiated HEADER_TABLE_SIZE.

Mixed-direction Wireshark exports are handled: lines may carry offsets, ASCII previews and client/server markers, and the client connection preface is skipped when present. PING echoes are paired by opaque bytes, CONTINUATION frames are chained to the HEADERS frame that opened the block, and a flow-control ledger shows DATA bytes consumed against WINDOW_UPDATE increments for both the connection and each stream. Decoding is local and session-only; paste decrypted frames — this tool cannot read TLS-encrypted traffic.

What this tool does not do

  • Plaintext frames only: the decoder cannot decrypt TLS, and it does not parse HTTP/1 messages or HTTP/3/QUIC frames.
  • HPACK decoding resolves the 61 static entries and user-supplied manual entries; a full dynamic table is not reconstructed from the stream of insertions, so unknown indexes are labelled unresolved.
  • Stream states are heuristic (idle/open/half-closed/closed from END_STREAM and RST_STREAM observations), not a full RFC 7540 state machine with priority and push dependencies.
  • Mixed-direction captures are associated using the optional client/server markers in the input; without markers, frames are treated as one direction and CONTINUATION chains are grouped accordingly.
  • Frames are rendered as a scrollable table rather than a virtualized grid; very large dumps may be slow to display even though the byte walk is linear.
  • Debug data and header values that are not UTF-8 are shown as hex or with replacement characters rather than being interpreted as another encoding.
  • Input is capped at 16 MB and stays in tab memory; there is no network call, storage or server-side decoding.

How to use this tool

  1. Get plaintext frames

    Export a Wireshark 'Follow HTTP/2 stream' hex dump, or dump frame bytes from a test proxy. TLS payloads must be decrypted before pasting.

  2. Paste the hex

    Plain hex, colon- or comma-separated bytes, Wireshark offset columns and client/server markers are accepted. The 24-byte client preface is skipped automatically.

  3. Read the frames table

    Each row shows index, direction, type, flags, stream, length and a decoded summary. Click a row for a byte overlay with field labels; filter by type, text or findings-only.

  4. Inspect streams and HPACK

    The Streams tab groups frames and approximates RFC 7540 stream states. The HPACK tab lists decoded header fields with their source (static, literal, manual or unresolved).

  5. Supply dynamic entries

    If a field shows dynamic[62] unresolved, paste the known entry as '62: :authority: www.example.com' and press Apply table. Subsequent decodes resolve that index.

  6. Check the timeline and export

    Use the flow-control ledger for window analysis, review connection findings, then copy JSON or download CSV for a bug report.

Use cases

Diagnose a RST_STREAM storm

Filter the frames table to RST_STREAM, group by stream and read the error-code names (CANCEL, STREAM_CLOSED, PROTOCOL_ERROR) without decoding bytes by hand.

Investigate flow-control starvation

Compare per-stream DATA bytes against WINDOW_UPDATE increments in the ledger, honoring SETTINGS_INITIAL_WINDOW_SIZE instead of assuming 65535.

Verify a proxy's framing

Check that SETTINGS ACK frames have no payload, PING echoes match, CONTINUATION frames follow HEADERS and frame sizes stay within the negotiated limit.

Teach HTTP/2 multiplexing

Show one connection carrying several streams, with flag bits, padding and HPACK literals decoded side by side.

Accepted hex and frame layout

PartSize / behavior
Length3 bytes, unsigned big-endian; must fit the negotiated MAX_FRAME_SIZE (16384 by default)
Type1 byte: 0 DATA, 1 HEADERS, 2 PRIORITY, 3 RST_STREAM, 4 SETTINGS, 5 PUSH_PROMISE, 6 PING, 7 GOAWAY, 8 WINDOW_UPDATE, 9 CONTINUATION, 0x0a ALTSVC, 0x0c ORIGIN; ≥0x80 is shown raw as an extension
Flags1 byte; bit names are type-specific (END_STREAM 0x1, END_HEADERS 0x4, PADDED 0x8, PRIORITY 0x20, ACK 0x1) and unused bits are marked RESERVED
Stream ID4 bytes with the high bit reserved; 0 denotes connection-level frames
PrefacePRI * HTTP/2.0\r\n\r\nSM\r\n\r\n (24 bytes) is recognized and skipped when present
Hex inputContiguous hex, space/colon/comma separated bytes, Wireshark '0000 aa bb …' columns with ASCII preview, and client/server marker lines
HPACKRFC 7541 integers with 7/6/5/4-bit prefixes, indexed fields 1–61, literal names/values, Huffman strings and table-size updates

Invalid hex bytes and a set reserved stream-id bit are strict errors with a line or byte offset; malformed payloads produce findings and keep decoding.

Common mistakes

Mistake:Pasting a TLS-encrypted capture and expecting headers.

Fix:Export decrypted frames from Wireshark or a test proxy. HTTP/2 framing becomes visible only after TLS termination; the tool has no keys and does not decrypt.

Mistake:Assuming dynamic HPACK index 62 always means :method GET.

Fix:Dynamic indexes depend on earlier header blocks on the same direction. This tool resolves only static entries and entries you supply, so unresolved fields are labelled instead of guessed.

Mistake:Treating every 0x1 flag as END_STREAM.

Fix:Flag bits are type-specific. For SETTINGS and PING, 0x1 means ACK; only DATA and HEADERS use it for END_STREAM.

Mistake:Reading SETTINGS id 0x8 as MAX_CONCURRENT_STREAMS.

Fix:MAX_CONCURRENT_STREAMS is id 3. Id 0x8 is ENABLE_CONNECT_PROTOCOL, a later extension; the decoder names both correctly.

Mistake:Counting padding bytes as DATA payload.

Fix:With the PADDED flag, the first payload byte is the pad length and that many bytes at the end are padding. The decoder excludes both when counting DATA bytes for flow control.

Mistake:Expecting WINDOW_UPDATE increment 0 to be harmless.

Fix:RFC 7540 treats a zero increment as a FLOW_CONTROL_ERROR. The tool flags it and still shows the frame so the rest of the capture remains readable.

Mistake:Splitting a HEADERS block across frames but expecting CONTINUATION to stand alone.

Fix:A header fragment without END_HEADERS must be followed by CONTINUATION frames on the same direction. The decoder chains them and reports orphans as findings.

Frequently asked questions

What are the HTTP/2 frame types?

Every HTTP/2 message is carried in a 9-byte header followed by a typed payload. The core types are DATA (0), HEADERS (1), PRIORITY (2), RST_STREAM (3), SETTINGS (4), PUSH_PROMISE (5), PING (6), GOAWAY (7), WINDOW_UPDATE (8) and CONTINUATION (9). ALTSVC (0x0a) and ORIGIN (0x0c) are also registered; values of 0x80 or more are extension frames. The decoder names each one and shows its flag bits and payload fields.

Why can't all HPACK headers be decoded?

HPACK indexes above 61 refer to a dynamic table built by earlier header blocks on the same connection direction. If your dump does not start at the connection preface — or merges two directions without markers — those entries are unknowable from the bytes alone. This tool resolves the 61 static entries and leaves dynamic references labelled dynamic[62] unresolved rather than inventing values. Paste known entries into the manual HPACK table as '62: :authority: www.example.com' and they will resolve on the next decode.

What does RST_STREAM mean here?

RST_STREAM terminates a single stream. Its four-byte payload is an error code: 0x8 CANCEL, 0x5 STREAM_CLOSED, 0x7 REFUSED_STREAM, 0x2 INTERNAL_ERROR and so on. The decoder names the code, tags the stream as closed and adds a finding when RST_STREAM targets stream 0, which is a connection error rather than a stream error.

How is the stream ID read?

It is the last four bytes of the 9-byte frame header, interpreted as a 31-bit unsigned integer: the high bit is reserved and must be zero. Stream 0 means a connection-level frame such as SETTINGS or PING; odd IDs are normally client-initiated and even IDs server-initiated. A set reserved bit is reported as a strict error with its byte offset because the bytes no longer form a valid frame header.

Can it decode TLS traffic?

No. TLS encrypts the entire HTTP/2 frame layer, so encrypted bytes cannot be framed. Export decrypted frames from Wireshark after supplying the session keys, or capture cleartext from a local test proxy or h2c endpoint, then paste that hex here. Nothing is uploaded and no keys are accepted.

Does it understand Wireshark 'Follow stream' exports?

Yes. Lines may start with a hex offset such as 0000, contain space-separated byte pairs and end with an ASCII preview column. Marker lines like 'Client to Server:' or 'Server to Client:' tag subsequent frames with a direction so CONTINUATION chains and PING echoes are paired per side. Plain contiguous hex works too.

What does a WINDOW_UPDATE finding mean?

WINDOW_UPDATE grants flow-control credit: the 31-bit increment is added to the connection or stream window. An increment of zero is a FLOW_CONTROL_ERROR and is flagged. The timeline ledger compares DATA bytes actually sent (padding excluded) with these increments, using SETTINGS_INITIAL_WINDOW_SIZE rather than always assuming 65535, so a stalled stream is visible as a shrinking or negative window.

How are SETTINGS values decoded?

Each SETTINGS entry is a 2-byte identifier and a 4-byte value. The decoder names id 1 HEADER_TABLE_SIZE, 2 ENABLE_PUSH, 3 MAX_CONCURRENT_STREAMS, 4 INITIAL_WINDOW_SIZE, 5 MAX_FRAME_SIZE, 6 MAX_HEADER_LIST_SIZE and 0x8 ENABLE_CONNECT_PROTOCOL; 0x8 is not MAX_CONCURRENT_STREAMS. A SETTINGS ACK must have an empty payload, and a non-multiple-of-six payload is reported as a finding.

Why are some frames shown as raw bytes?

Extension frame types (0x80 and above), ALTSVC, ORIGIN and unrecognised reserved types have no generic payload decoder in this tool. They are still walked and displayed with their header fields and raw payload, plus an informational finding, so they never shift the byte alignment of later frames.

What happens with a truncated or malformed dump?

If a frame declares more payload bytes than remain, the decoder keeps every complete frame and reports a truncated tail. Invalid hex byte tokens and a set reserved stream-id bit are strict errors with a line or byte offset, while payload-level mistakes (bad SETTINGS length, orphan CONTINUATION, PING ACK without a request) become findings and decoding continues. Your input is always kept so you can fix it in place.

References & standards