Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Babel REPL

babeljs.io

  • Free plan
  • Web
7.1 Club score Visit babeljs.io

What Babel REPL is

Babel REPL is a free, open-source browser tool for exploring Babel transformations. Babel converts ECMAScript 2015 and newer syntax into JavaScript for current or older browsers and environments. The page places source code beside compiled output and also offers an input AST pane. Controls include Evaluate, Line Wrap, Prettify, File Size, Time Travel, and Source Type. Settings cover targets, the Env preset, assumptions, plugins, and other options, with “defaults” shown as the target setting. Presets include React, Flow, TypeScript, stage proposals, and Env. Babel transforms modern JavaScript and JSX and can remove Flow or TypeScript annotations, but it does not type-check them. Plugins and presets can be combined, including custom ones. Babel describes the REPL as useful for learning and prototyping. For production, it recommends ahead-of-time transpilation through Node.js build systems such as Webpack, Rollup, or Parcel.

Who it suits

It suits learners and developers prototyping transformations in a browser. Production teams should use a Node.js build system instead of relying on the standalone REPL.

Good to know, and what to watch

  • Free and open source
  • Shows source, compiled output, and input AST
  • Supports React, Flow, and TypeScript presets
  • Transforms JavaScript and JSX
  • Allows custom plugins and presets
  • Does not type-check Flow or TypeScript
  • Configuration files do not work in standalone mode
  • Production use is not recommended
  • REPL lacks assumptions configuration and plugin options

The verdict

Babel REPL makes Babel’s transformations visible through side-by-side panes, presets, targets, and inspection controls. It is a practical learning and prototyping surface, while production transpilation belongs in a Node.js build workflow.

What the maker publishes

Additional controls
The REPL page lists Evaluate, Line Wrap, Prettify, File Size, Time Travel, and Source Type controls. source
AST view
The REPL page offers an input AST pane alongside compiled output. source
Browser availability
Babel documents the site REPL as an example of a site that compiles user-provided JavaScript in real time. source
Compiler
Babel converts ECMAScript 2015+ code into backward-compatible JavaScript for current and older browsers or environments. source
Configuration limitation
Babel configuration files do not work in @babel/standalone because it has no filesystem access; presets and plugins must be passed through transform options. source
Customization
Babel documents registering custom plugins and presets for @babel/standalone. source
Custom transformations
Babel supports composing transformations from plugins and presets, including plugins users write themselves. source
Input and output
The REPL page provides code and compiled output panes. source
Integrations
Babel documentation names Webpack, Rollup, and Parcel as build systems that can transpile JavaScript ahead of time. source
JavaScript and JSX
Babel supports transforming modern JavaScript syntax and JSX syntax. source
Presets
The REPL interface lists React, Flow, TypeScript, and stage proposal presets, along with an Env Preset section. source
Production guidance
Babel recommends using a Node.js build system such as Webpack, Rollup, or Parcel to transpile production JavaScript ahead of time instead of using @babel/standalone. source
Production limitation
The documentation says @babel/standalone normally should not be used for production and recommends a Node.js build system to transpile code ahead of time. source
Project status
Babel describes itself as maintained by a small group of volunteers and funded by the community. source
Purpose
The REPL is a browser-based tool for trying Babel transformations on code. source
Purpose
Babel describes its REPL as a playground for learning how Babel transpiles source code. source
REPL controls
The REPL page shows code and output panes, Evaluate, Line Wrap, Prettify, File Size, Time Travel, Source Type, Targets, Presets, Options, and Plugins controls. source
REPL limitations
Babel's roadmap says the REPL does not support assumptions configuration or plugin options. source
Security and configuration limit
Babel states that standalone config files do not work because it has no filesystem access; presets and plugins must be specified in transform options. source
Standalone usage
Babel says @babel/standalone supports browser and other non-Node.js environments and can be installed through npm, Yarn, pnpm, or Bun. source
Standalone use
The @babel/standalone documentation identifies the Babel site REPL, JSFiddle, JS Bin, and JSitor as examples of sites compiling user-provided JavaScript in real time. source
Support channels
Babel’s site links to Stack Overflow and a Slack channel as community resources. source
Supported syntax options
Babel lists env, react, typescript, and flow among the popular built-in standalone presets. source
Transform settings
The REPL page includes settings for targets, the env preset, assumptions, and plugins. source

Checked against the maker's pages on 8 Oct 2026.