cURL Formatter — Multi-line, fetch, HTTP/1.1
Paste Chrome Copy as cURL or Copy as fetch and get readable multi-line cURL, HTTP/1.1, a .http file, JavaScript fetch, or Python requests. Sanitize Cookie, Authorization, sec-ch-*, and Referer before you share. 100% in your browser, and FastMinify never sends the request.
Developer notes
The supported subset is -X, -H, -d / --data-raw, -u, -b, --compressed, and the URL. Accepted input is cURL, Chrome fetch() that is parsed and never evaluated, a single-request .http file, or a raw HTTP/1.1 request. Axios, template literals, and multi-request .http files fail with a clear error. @file bodies and multipart -F fail with a clear error, so paste the body inline. Sanitize (off by default) strips Cookie, Authorization, headers starting with sec-ch-, and Referer. JSON bodies are indented in multi-line cURL when the payload parses as JSON. FastMinify never fetches the pasted URL.
Options
- Layout
- Multi-line (default) or one-line. Applies to cURL and all code outputs.
- Language
- cURL (default), HTTP/1.1, .http, JavaScript fetch, Python requests, Go net/http, or PHP curl_*. The parse is the same, with seven output formats.
- Sanitize secrets
- When on, omit Cookie, Authorization, sec-ch-*, and Referer from the formatted copy. Default off.
When this is the right tool
Share a DevTools capture without a 400-character one-liner. Turn the same paste into fetch(), HTTP/1.1, or a .http file for a ticket or REST Client. Strip Cookie and Authorization before pasting into Slack or a gist.
Worked examples
Chrome one-liner → multi-line
Before
After
Sanitize Cookie before copy
Before
After
Related HTTP and encoding tools
Back to the HTTP Tools hub. Percent-encode a component with URL Encode / URL Decode. For JSON payloads, use JSON Formatter and JSON Validator. For Bearer tokens, use JWT Decode. For Basic auth values, use Base64. For specs (OpenAPI / JSON Schema), see API & schema tools.
cURL Formatter FAQ
Paste-local DevTools cURL, never sent
Does FastMinify send the request?
No. There is no Send button, no runner, and no proxy. The pasted command stays in your browser.
Is this a curl converter?
No. The page is a formatter: readable cURL, one-line cURL, HTTP/1.1, .http, JavaScript fetch, Python requests, Go net/http, and PHP curl_*. It is not a 30-language converter.
Which flags are supported?
The DevTools subset: -X, -H, -d / --data-raw, -u, -b, --compressed, and the URL. @file and multipart -F are rejected with an error.
What does Sanitize secrets remove?
Cookie, Authorization, any header whose name starts with sec-ch-, and Referer. The switch is off by default so you can inspect the original paste first.
HTTP Tools
Paste-local cURL, HTTP messages, URLs, HAR files, and Cookie / Set-Cookie headers — format and inspect in your browser, never sent.
Explore other tool categories
- Minify
Shrink code and assets for production — minify JavaScript, CSS, HTML, JSON and XML before gzip or CDN deploy.
- Unminify
Expand minified or compressed code — unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats when debugging or reviewing.
- Conversion
Transform data between JSON, YAML, XML and CSV locally — no server uploads.
- Encoding
Encode or decode Base64, URL components and HTML entities — client-side only.
- Serialization
Serialize and deserialize PHP data structures beside JSON workflows.
- JSON Tools
Validate, format, diff and explore JSON payloads — complementary to minifiers and converters.
- SVG Tools
Preview, optimize with SVGO, export Data URI, resize, beautify, convert to JSX and validate SVG — all in your browser.
- Beautify
Make code readable with consistent indentation — beautify JavaScript, CSS, TypeScript, SCSS, LESS, Markdown, GraphQL, SQL, YAML and more in your browser.
- CSS preprocessors
Compile SCSS or LESS to standard CSS in the browser — pair with beautify or minify for a full stylesheet workflow.
- Color & CSS Tools
Paste-local WCAG contrast checking with modern CSS color syntax — pair and matrix views, never uploaded.
- DevOps & Infra
Terraform HCL format/validate/minify, Dockerfile format & lint, Docker Compose and .env validation.
- CI/CD
GitHub Actions and GitLab CI — format YAML and check workflow/job structure in your browser.
- Logs & observability
Line-oriented JSON/NDJSON and Nginx/Apache access logs — format, filter, validate, and CSV/TSV.
- Kubernetes
Multi-doc manifests, structural validate, Ingress/Deployment starters, and Helm values formatting.
- Networking / IP
CIDR, subnets, and IPv4/IPv6 helpers — in your browser.
- Security & tokens
JWKS, X.509 certificates, and secrets scan — browser-local.
- API & schemas
OpenAPI tools to format, validate, and lint your specs.
- SEO / Web Tools
Generate meta tags, Open Graph, and Twitter Card output locally — previews simulated from your inputs, never fetched from your live site.
- Developer utilities
Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugify, number bases, case, text diff, and chmod — all client-side.
- Text & Markdown
Count words, build Markdown TOCs, and clean line lists — all in your browser.
- AI & LLM
Token counting, pricing estimates, and context-window fit — 100% browser-local.
- Test Data
Synthetic field values for fixtures and DB seed — reserved-range phone numbers first.
- Barcode labels
Draw Code 128, EAN-13, and UPC-A label images in the browser — PNG and SVG download, not a GS1 lookup.