Developer Tools
WebSocket to cURL
Convert a WebSocket connection to cURL handshake, wscat, websocat, JavaScript, or Python code
WebSocket connection
.sh
curl -i -N 'https://echo.websocket.org' \ -H 'Connection: Upgrade' \ -H 'Upgrade: websocket' \ -H 'Origin: https://echo.websocket.org' \ -H 'Sec-WebSocket-Version: 13' \ -H 'Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==' \ -H 'Authorization: Bearer YOUR_TOKEN'
The cURL output is the raw HTTP Upgrade handshake (RFC 6455). Use it to verify the server returns 101 Switching Protocols. cURL itself doesn't speak the WebSocket frame protocol after the handshake — for that, switch to wscat or websocat.
Continue Exploring
Other Developer Tools you might like...
JSON Formatter
Format, validate, and minify JSON data with syntax highlighting
Try Now
Base64 Encoder/Decoder
Encode text to Base64 and decode Base64 strings
Try Now
URL Encoder/Decoder
Encode and decode URL components and query strings
Try Now
UUID Generator
Generate random UUID v4 identifiers
Try Now
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text
Try Now
Regex Tester
Test and debug regular expressions with match highlighting
Try Now
JWT Decoder
Decode and inspect JWT token header and payload
Try Now
HTML Formatter
Beautify and format HTML code with proper indentation
Try Now