Logo

    SwagKnife

    SwagKnife

    Convert cURL commands to Swagger/OpenAPI YAML with live preview

    cURL to Swagger Converter
    Convert API cURL commands to Swagger-compatible YAML with visualization

    cURL Command

    How to Use

    About SwagKnife:

    SwagKnife converts cURL commands into Swagger/OpenAPI 3.0 YAML format. It automatically extracts endpoints, methods, headers, request bodies, and generates comprehensive API documentation that follows Swagger specifications.

    Features:

    • Converts cURL commands to OpenAPI 3.0 YAML format
    • Generates schema definitions from JSON request bodies
    • Extracts query parameters and headers automatically
    • Supports Bearer and Basic authentication
    • Live Swagger UI preview of generated documentation
    • Copy-to-clipboard functionality for easy sharing
    • References swagger.io standards and best practices

    Supported cURL Features:

    • HTTP methods (GET, POST, PUT, DELETE, PATCH, etc.)
    • JSON request bodies with automatic schema generation
    • Custom headers (including Authorization)
    • Query parameters
    • Bearer token and Basic authentication

    For more information about Swagger/OpenAPI specifications, visit swagger.io