- LuzineDebug
- Tools
- cURL converter
Convert a cURL command to fetch, axios, PHP or Python
Paste a cURL command (DevTools “Copy as cURL”): get the fetch, axios, Node, PHP (Laravel Http or curl) or Python requests code. Everything happens in your browser.
Supported cURL options
-X / --request, -H / --header, -d / --data / --data-raw / --data-binary / --data-urlencode, --json, -F / --form, -u / --user, -b / --cookie, -A / --user-agent, -e / --referer, -G / --get, -I / --head, -L, -k / --insecure, --compressed, --url. Chrome and Firefox “Copy as cURL” formats (bash and Windows cmd) are recognised.
Frequently asked questions
How do I get the cURL command of a browser request?
Open the DevTools (F12), Network tab, right-click the request then Copy → Copy as cURL (bash). Paste it here: you get the same call in JavaScript, PHP or Python, handy to reproduce a bug outside the browser.
The request works with cURL but not with fetch: why?
cURL is not subject to CORS or browser cookies. If fetch fails from a page, check the console (CORS error?), the credentials option and the headers browsers forbid (Cookie, Host, Origin cannot be set by hand).
Is my command sent anywhere?
No, the conversion runs in your browser and no request is executed. Commands copied from the DevTools often contain your cookies and tokens: do not share them as is.
Errors this tool helps solve
Fix "Mixed Content: … requested an insecure resource" (HTTPS mixed content)
Your page is served over HTTPS but loads a script, stylesheet, API call or form over http://, and the browser blocks that request.…
Web, HTML & CSS Beginner 10 min Refused to apply style from 'https://example.com/css/style.css' because its MIME type ('te…Fix "Refused to apply style … MIME type ('text/html') is not a supported stylesheet MIME type"
The browser requested your CSS file but received an HTML page, almost always a 404 page or a SPA home page returned instead of a m…
Web, HTML & CSS Beginner 10 min Failed to load module script: Expected a JavaScript module script but the server responded…Fix "Failed to load module script: Expected a JavaScript module script … MIME type of text/html" (Vite, SPA)
The browser requested a JavaScript file (type="module") and the server sent back index.html. On a deployed Vite app, it is almost…
Web, HTML & CSS Intermediate 15 min This page isn’t workingFix ERR_TOO_MANY_REDIRECTS "redirected you too many times" (redirect loop)
The server redirects the page to a URL that in turn redirects back to the first one, forever. The number one cause is Cloudflare i…
Web, HTML & CSS Intermediate 15 min openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `gpt-4-32k` does…Fix "The model … does not exist or you do not have access to it" (404 model_not_found)
The API does not recognise the model name you sent, or your key (organization, project, workspace) is not allowed to use it. Typic…
AI & LLMs Beginner 10 min 2026/11/28 14:03:27 [error] 1234#1234: *89 upstream timed out (110: Connection timed out)…Fix "upstream timed out (110: Connection timed out)" and 504 Gateway Time-out in Nginx
Nginx did reach your application (PHP-FPM, Node, Python…), but it did not answer within the allowed time (60 seconds by default),…
DevOps, servers & cloud Intermediate 20 min 413 Request Entity Too LargeFix "413 Request Entity Too Large" (Nginx, PHP, Express, Cloudflare)
The request body (often an uploaded file) is larger than the server accepts. On Nginx the default limit is 1 MB: raise client_max_…
DevOps, servers & cloud Beginner 10 min Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Author…Fix "Certbot failed to authenticate some domains" (Let’s Encrypt, Timeout during connect, acme-challenge 404)
Let’s Encrypt could not verify that you control the domain: it did not reach your server on port 80 (Timeout during connect), or i…
DevOps, servers & cloud Intermediate 15 minOther tools
Error finder
Paste an error message or a log: the tool recognises the error and opens the right fix.
JSON validator
Validate, format and minify JSON, with the exact line and column of the error.
Regex tester
Test a regular expression live: highlighted matches, groups, replacement.
JWT decoder
Decode a JWT: header, payload, readable expiry dates and whether the token has expired.
HTTP status codes
All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.
Text diff
Compare two versions line by line: additions, deletions, invisible whitespace.
Base64 & URL encoder
Encode and decode Base64 (standard and URL-safe), URL, HTML entities and Unicode escapes, with proper UTF-8 handling.
Hash generator
Computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC of a text or file, and compares with an expected hash.
Timestamp converter
Converts a Unix timestamp (seconds, milliseconds, microseconds) to a readable date in any time zone, and back.
Cron explainer
Turns a cron expression into a plain sentence, lists the next runs and flags the traps (day of month AND day of week, time zone).
YAML validator
Validates YAML (docker-compose, GitHub Actions, Kubernetes), shows the faulty line and tabs, and converts it to JSON.
Chmod calculator
Tick the permissions and get 755 or rwxr-xr-x (and back), with the ready-to-copy command and safe presets by use case.
Stack trace formatter
Formats a stack trace (JS, Python, PHP, Java, .NET, Go), separates your code from libraries and points to the line to open first.