Example
Options
URL: https://api.yutils.dev/tools
Method: POST
Headers: Content-Type: application/json
Body: { "name": "new-tool" }Output (curl command)
curl -X POST 'https://api.yutils.dev/tools' \
-H 'Content-Type: application/json' \
-d '{ "name": "new-tool" }'Note
JSON Content-Type is auto-detected when the body looks like JSON. Single quotes are preferred for shell safety.
Usage / FAQ
When to use
- Quick API calls without firing up Postman / Insomnia
- Attach reproducible API examples to issues and docs
- Share "try this" curl snippets with teammates
- Verify curl commands before pasting into a CI script
- Lay out headers / body cleanly for a complex API call
FAQ
- Q.Does this work in Windows PowerShell?
- A.The output targets bash / zsh (single quotes). In PowerShell, `curl` is an alias for `Invoke-WebRequest` — use `curl.exe` explicitly or translate to native PowerShell syntax.
- Q.How should I handle secrets in the Authorization header?
- A.Use environment variables — `-H "Authorization: Bearer $TOKEN"`. Don't paste commands with raw tokens into issues.
- Q.What about non-ASCII bodies?
- A.UTF-8 is passed through. Shell escaping can bite, though — `--data-binary` or a file (`curl -d @body.json`) is safer for complex payloads.
Fun facts
curl was created in 1996 by Sweden's Daniel Stenberg — initially named 'httpget', then 'urlget', then 'curl'. For nearly 30 years it's been maintained by essentially one person, and it became the universal HTTP tool across every OS, language, and device.
Wikipedia — curl'curl in everything' — curl ships in iOS, macOS, Windows, Linux, car infotainment systems, IoT devices, planes, NASA's Curiosity Mars rover, even the ISS. 'When Stenberg's laptop crashes the internet shakes' is only half a joke.
curl — Companies usingcurl 7.66 (2019) added HTTP/3 (QUIC) support — Stenberg himself is an active member of the IETF QUIC working group, so curl effectively doubles as the reference implementation for HTTP standards. Spec and implementation by the same hands is a rare luxury.
curl — HTTP/3
Related tools
- Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text. Runs entirely in your browser, no data sent to any server.
- URL Encode / Decode
Percent-encode text for safe use in URLs, or decode percent-encoded URLs back to text. Runs entirely in your browser.
- UUID / ULID Generator
Generate UUID v4 (random), UUID v7 (time-ordered, RFC 9562), or ULID identifiers — all client-side via crypto.
- JWT Decoder
Decode the header and payload of a JSON Web Token. Signature is not verified (a public key is required). The token is processed entirely in your browser.
- JWT Encoder (HMAC)
Generate a signed JSON Web Token with HS256/HS384/HS512 (HMAC-SHA). Payload and secret stay in your browser — Web Crypto API based.
- SHA Hash
Compute SHA-1, SHA-256, SHA-384, or SHA-512 hash of text. Uses the browser's Web Crypto API; no data is sent to any server.
- Hex Encode / Decode
Encode text to hexadecimal or decode hex back to text. Supports UTF-8 multi-byte characters and tolerates whitespace.
- HTML Entity Encode / Decode
Encode HTML special characters (&, <, >, ", ') to entities, or decode named/numeric entities back to text.
- Password Generator
Generate cryptographically strong passwords, tokens, random strings, and passphrases with entropy display.
- Number Base Converter
Convert numbers between bases (binary/octal/decimal/hex/base36) using BigInt for large integers. Auto-detects 0b/0o/0x prefixes.
- URL Parser
Decompose a URL into protocol, host, path, query parameters, and hash — read-only inspection.
- HMAC Generator
Compute HMAC (Hash-based Message Authentication Code) with SHA-1/256/384/512 using the Web Crypto API.
- HMAC Verify
Verify whether a given HMAC signature matches the message + secret. Constant-time comparison via Web Crypto API.
- MD5 Hash
Compute MD5 hash for text. Note: MD5 is broken for security — checksums and legacy compatibility only.
- Punycode (IDN)
Convert international domain names to/from Punycode (xn-- encoded ASCII). Uses native URL parser.
- HTTP Status Codes
Browse and search HTTP status codes (1xx-5xx) with descriptions and common usage.
- User-Agent Parser
Parse User-Agent strings into browser, OS, device, and engine fields.
- Bcrypt Hash
Hash passwords with Bcrypt or verify a plaintext against an existing hash. Configurable salt rounds.
- Cookie Parser
Parse Cookie or Set-Cookie strings into a table. Decode percent-encoded values. Supports Set-Cookie attributes (Path/Domain/Max-Age/SameSite/HttpOnly/Secure).
- IP / CIDR Calculator
Compute network address, broadcast, host range, mask, and host count from an IPv4 + CIDR.