XTools Logo
XTools
Blog
/
JSON Formatter & YAMLXML FormatterCode Formatter & MinifierJSON to TypeScriptMarkdown ⇄ HTMLMermaid Diagram EditorRegex TesterJWT DecoderUUID GeneratorEncode & DecodeCron Expression BuildercURL Command BuilderMeta Tag GeneratorPX to REM & Line HeightCSS GeneratorChmod Calculator

© 2026 XTools. All rights reserved.

Privacy PolicyContact Us

    cURL Command Builder

    Build a curl command from method, URL, headers, and body — without sending it
    • Files never leave your device
    • Runs in your browser
    • Free, no sign-up, no watermark
    This page only writes commands. It never sends the request — nothing leaves your browser.

    Import a curl command

    Request

    Output

    1
    2
    3

    Related tools

    • JSON Formatter & YAML
    • XML Formatter
    • Code Formatter & Minifier
    • JSON to TypeScript
    • Markdown ⇄ HTML
    • Mermaid Diagram Editor
    • Regex Tester
    • JWT Decoder
    • UUID Generator
    • Encode & Decode
    • Cron Expression Builder
    • Meta Tag Generator
    • PX to REM & Line Height
    • CSS Generator
    • Chmod Calculator

    How to use cURL Command Builder

    Build a curl command from a method, URL, headers, body, and auth, or import one copied from your browser's DevTools to edit it. The same request can be written as curl, fetch(), Python requests, HTTPie, or wget. The page never sends the request.

    1. 1

      Choose the Method and enter the URL, or paste an existing command under Import a curl command and click Import.

    2. 2

      Fill in the Params, Headers, Body, Auth, and Options tabs.

    3. 3

      Pick an Output: curl, fetch(), Python, HTTPie, or wget. For curl, choose the Shell: bash / zsh, PowerShell, or Windows cmd.

    4. 4

      Copy the generated command and run it in your terminal or code.

    Frequently asked questions

    Does this tool send my request?

    No. It only writes commands, and nothing leaves your browser. Credentials you enter stay in the tab and are never saved.

    How do I import a request from Chrome or Firefox?

    In DevTools, right-click a request in the Network panel and choose Copy as cURL, then paste it under Import a curl command. Options the builder doesn't support are listed as ignored.

    Why does the PowerShell version use curl.exe?

    In PowerShell, curl is an alias for a different command. curl.exe calls the real curl. Embedded double quotes pass through correctly in PowerShell 7.3 and later.

    Can I send a file upload?

    Yes. Set Body to Multipart and add a File field with the path to the file on your computer; the command reads the file from that path when you run it.

    Which body types are supported?

    None, JSON, Form URL-encoded, Multipart, and Raw. JSON bodies are checked as you type, and a Format button tidies them.