Accurate conversion
Input is processed by this tool’s dedicated converter.
Transform your legacy ES5 code into modern ES6+ JavaScript. This free online converter updates `var` to `let`/`const`, converts functions to arrow functions, uses template literals, and applies many other modern syntax improvements—perfect for refactoring older codebases. Works directly in your browser.
Converted output will appear hereInput is processed by this tool’s dedicated converter.
Your input is processed in your browser and is not uploaded.
Copy the result or save it as a file.