Convert CURL Commands to Dart code Online

Curl command

Examples: GET - POST - JSON - Basic Auth - Files - Form

CURL to Dart Online

This tool helps you to generate Dart code based on CURL Command. Copy and Paste CURL Command and Generate Dart.

What can you do with CURL to Dart Converter Online?

  • CURL to Dart is very unique tool to convert cURL command to http request of Dart. The input provide by the user's cURL command to generate Dart Code.
  • This tool saves your time and helps to generate Dart code with ease.
  • CURL to Dart works well on Windows, MAC, Linux, Chrome, Firefox, Edge, and Safari.

what is CURL?

cURL is an open-source command line tool that downloads files from the web. It supports a variety of protocols, including HTTP, HTTPS, FTP, SFTP, TFTP, Gopher and others.

How do convert CURL to Dart code? 

Step1: Paste and convert your CURL requests to Dart code.
Step2: Copy Dart Code

Convert CURL to Dart Example

Dart Code
import 'package:http/http.dart' as http;

void main() async {
  var url = Uri.parse('');
  var res = await http.get(url);
  if (res.statusCode != 200) throw Exception('http.get error: statusCode= ${res.statusCode}');