Dart Formatter

Format Dart and Flutter code with standard indentation.

Dart Formatter

.dart

Paste text or open a file to see the result.

What it does

Formats Dart and Flutter code with standard indentation and line breaks. Flutter widget trees nest deeply, and a clean layout makes them much easier to follow. You get the same code in a tidy form.

About the .dart format

.DART file extension
File Type
Apple Mac OS X DiskImageMounter DART Image

Dart Formatter questions

How do I use the Dart Formatter?

Paste the text into the Input box or open a file, set the options, then copy or download the result.

Does renaming a file to .dart change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .dart page lists programs and converters for it.