API Debugging Toolkit
A request fails, a webhook is rejected, or a response doesn't look right. These tools cover each step of finding out why, from the URL you call to the response you get back.
Check the request
Split a URL into its parts and query parameters, encode values safely, turn a cURL command from the docs into JavaScript fetch code, and see what a User-Agent string says about the client.
URL Parser
Parse any URL online into protocol, hostname, port, path, query parameters and hash.
URL Encoder / Decoder
Encode and decode URLs and query string parameters online, instantly.
cURL to Fetch
Convert a cURL command into a JavaScript fetch() call instantly online, for free.
User-Agent Parser
Parse any User-Agent string into browser, engine, OS, and device details online.
Check authentication
Decode a JWT to read its claims and expiry, verify the signature of an HMAC-signed token (HS256, HS384 or HS512), decode Base64 credentials such as Basic auth, and compute an HMAC to check a webhook signature.
JWT Decoder
Decode JWT tokens online and inspect the header, payload, and signature instantly.
JWT Validator
Verify a JWT token's HMAC signature and check its expiry online, instantly.
Base64 Encoder / Decoder
Encode or decode Base64 text and files instantly online.
HMAC Generator
Create HMAC-SHA256 and HMAC-SHA512 signatures online in hex or Base64.
Read the response
Format the JSON body, look up what a status code means, and turn Unix timestamps in the payload into dates.
Compare a working and a broken call
Put the two responses side by side to find the field that differs.
Frequently asked questions
How do I debug a 401 Unauthorized error?
Decode the token with the JWT Decoder and check its expiry (exp) and audience, verify an HMAC-signed token with the JWT Validator, and check the Authorization header is being sent at all. HTTP Status Codes has a short explanation of 401 and the codes around it.
Why does my webhook signature not match?
Sign the raw request body exactly as received, with the right secret and algorithm. The HMAC Generator shows the signature to compare against the header the provider sends.
How do I convert a cURL command to JavaScript?
Paste it into cURL to Fetch to get the equivalent fetch call, with the method, headers and body.
Are the tokens and payloads I paste sent anywhere?
No. These tools run in your browser. Still, avoid pasting production secrets on a shared computer.