---
title: "dart2js: Dart-to-JavaScript compiler"
short-title: dart2js
description: The dart2js compiler compiles Dart code to deployable JavaScript.
---

:::version-note
Dart 2.18 removes the `dart2js` command-line tool from the Dart
package, but retains the dart2js compiler.

Use [`dart compile js`](/tools/dart-compile#js) to compile Dart code
to deployable JavaScript.
:::
