How to use
Enter the WebSocket URL (wss://… or ws://…). If needed, add a sub-protocol or a credential to pass in the query.
Press Connect (Ctrl/⌘+Enter also works). Wait until the status says Connected.
Enter what to send as text, hex or Base64 and press Send. Messages you send often can be saved as templates.
Received messages are listed on the right, newest first. Select one to view it as text, formatted JSON or hex. You can search the log and save it as JSON Lines or text.
Press Disconnect to close. You can add a close code and reason.
What it does
Connects straight from your browser
Connecting and messaging happen only between your browser and the other server. This site’s server neither relays nor stores the traffic. Opening the page does not connect; only pressing Connect does.
Explains mixed content before connecting
This page is https, so the browser blocks connections to ws://. When the URL you entered is affected, the tool says why and how to fix it (use wss://) before you connect. localhost and 127.0.0.1 are let through by some browsers, so they get their own note.
Send text, hex or Base64
Text goes out as UTF-8 text; hex (spaces, commas and 0x allowed) and Base64 (URL-safe characters and missing = allowed) go out as a binary frame. One message can be up to 1 MB.
Search, format and save the log
Up to 2,000 messages and about 50 MB in total are logged. Filter by direction and text, view each message as formatted JSON or a hex dump, and save as JSON Lines or text.
Close codes and failure causes
When the connection closes, the close code and reason are logged with the meaning from RFC 6455 §7.4. Causes of a failed connection are explained in order: refused Origin, mixed content, certificate, proxy, how the credential is passed.
Use cases
- Check that a WebSocket server in development answers with the messages you expect
- Narrow down why a wss:// address will not connect (Origin, certificate, mixed content, proxy)
- Send a binary frame written in hex or Base64 and watch the server’s reaction
- Read the JSON messages a server pushes, formatted
- Look up what a close code (1000, 1006, 1008 …) means
Supported formats
What you can send
Capability matrix
| Feature | Support | Notes |
|---|---|---|
| Connect to ws:// and wss://, send and receive text and binary | Supported | — |
| Choose sub-protocols and show the one the server picked | Supported | — |
| Close with a code and a reason | Supported | — |
| Save what you send as templates and send it again | Supported | Stored only inside this browser |
| Automatic reconnect after a drop | Partial | Off by default. When on, it has a limit of 1 to 10 attempts |
| Sending a ping | Not supported | The browser’s WebSocket API has no way to send one. The browser answers a server’s ping with a pong by itself |
| Connecting with headers such as Authorization | Not supported | A browser WebSocket cannot set headers. It is for servers that take credentials in the query, a cookie or a sub-protocol |
| Reaching servers your browser cannot reach (e.g. inside a company network) | Not supported | This site’s server does not relay |
| Showing the detailed reason of a failed handshake | Not supported | The browser hides the status code. The tool shows close code 1006 and likely causes |
Limits & notes
- One message is cut at 1 MB (1,048,576 characters of text or 1,048,576 bytes of binary); anything beyond is not logged. Sending is limited to 1 MB as well.
- The log keeps the newest 2,000 messages and about 50 MB in total, dropping the oldest first. The list shows the newest 300.
- Sending is limited to 20 per second.
- While this page is https, a ws:// address cannot be reached (except in browsers that let localhost through).
- The URL can be up to 2,000 characters and cannot have a # fragment. A sub-protocol is a name of letters, digits and a few symbols.
- Only the URL (without query and user info), the sub-protocols, the reconnect settings and the templates are saved. The credential is not.
- JSON formatting reads large numbers as JavaScript numbers, so integers with many digits may be rounded.
Privacy & safety
The only server contacted is the one at the URL you enter. Traffic goes straight from your browser to it; this site’s server neither relays nor stores it. The credential is not saved, and query values are hidden in on-screen connection messages and saved log files. The log disappears when you close the page.
FAQ
Why does my WebSocket close with 1006?
Why can’t an https page connect to ws://?
Does WebSocket have CORS?
Can I connect with an Authorization header?
Can I send a ping?
How is this different from the curl code generator or CORS Studio?
Related tools
SSE Client
Enter the URL of an SSE (text/event-stream) endpoint and press Connect: your browser connects straight to the server and logs each event split into event, id and data. This site’s server relays nothing.
Socket.IO Client
Enter a Socket.IO server URL and press Connect: your browser connects straight to it, emits events with JSON arguments, and logs every event and ack that arrives. This site’s server relays nothing. It is a v4 client, so it cannot connect to a v2 server.
MQTT Client
Enter the URL of an MQTT-over-WebSocket broker (ws:// or wss://) and press Connect: your browser connects straight to the broker and you can subscribe and publish. This site’s server relays nothing. A browser cannot reach plain TCP (port 1883).
Diff Tool — Text & Code Compare
Paste or drop two versions and see added and removed lines, plus the exact words that changed inside each line. Copy or save the result as a unified patch. Nothing leaves your browser.
UUID / ULID / NanoID / Token Generator
A UUID is ready the moment the page opens. Switch to UUID v7, ULID, NanoID or a random token, generate up to 10,000 at once and save them as .txt, .csv or .json. Paste an existing UUID or ULID to read its embedded time and version.
JSON Studio — Formatter & Validator
Paste JSON to format, minify or validate it instantly. Errors are shown with the exact line, column and cause, and comments or trailing commas can be auto-repaired. Your data never leaves your device.
Last updated: