Start a project

Tool 276 of 425 · Protocols

WebSocket Frame Decoder

Decodes WebSocket frame bytes into header fields and payload, and builds masked or unmasked text frames.

WebSocket Frame Decoder

Your input

Result

FrameTypeMaskLengthPayload
Built frame (hex)

    01

    What it does

    Decodes WebSocket frame bytes into header fields and payload, and builds masked or unmasked text frames.

    • 7, 16 and 64-bit payload lengths
    • Unmasks client frames
    • Close codes and reasons
    • Builds text frames

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Frame fields and payloads, with a Copy and a Download button on every result.

    • WebSocket
    • RFC 6455
    • Protocol debugging

    Why it matters

    Wireshark captures and proxy logs show WebSocket traffic as bytes. Reading the two-byte header and unmasking by hand is slow and error-prone.

    Paste the hex to see each frame's type and contents, or build a frame to test a server.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Decode frames. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Why are some frames masked?

    RFC 6455 requires every client-to-server frame to be masked with a random 4-byte key, to stop cache poisoning through proxies.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk