.dart

How to open a .dart file

Quick, free ways to open Dart on any system.

A .dart file is a Dart Source File. If double-clicking does nothing, your computer simply does not have an app that reads Dart yet. Here is how to fix that on each operating system, using free software wherever possible.

Open a .dart file step by step

  1. Confirm the file really is a .dart. Drop it into the WhatFileType file identifier, which reads its signature without uploading anything.
  2. On Windows, open it with VS Code or Android Studio.
  3. On Mac, use VS Code or Android Studio.
  4. On Linux, try VS Code or Android Studio.
  5. Still stuck? Search for a dedicated Dart viewer.

Best apps to open .dart files

Windows

  • VS Code
  • Android Studio
  • any text editor

macOS

  • VS Code
  • Android Studio
  • any text editor

Linux

  • VS Code
  • Android Studio
  • any text editor
!
Before you open it: Caution. A .dart file is program source. Building and running it executes its code; review unfamiliar files first.

Frequently asked questions

Why can't I open my .dart file?

Almost always because no installed app understands Dart. Install one of the apps above, or convert the file to a format your existing software already reads.

How do I run a .dart file?

With Dart installed, run dart run file.dart. Flutter apps are run with flutter run from the project folder.

Is Dart only for Flutter?

No, but Flutter is its main use. Dart can also build command-line tools, servers and web apps that compile to JavaScript.

Learn more about .dart