omni compilerGet the app

JavaScript · Android 7.0+ · free

A JavaScript runner and HTML preview for Android

Run JavaScript or TypeScript on your phone in a Node-style runtime with stdin and test cases, or open an HTML file and see it rendered with a console for its errors. omni compiler keeps web projects as plain folders on your device and imports them from GitHub or GitLab.

JavaScript on a phone, done properly

  • JavaScript and TypeScript

    Run .js and .ts files; console output, errors and stack traces appear in the console, and the runtime version is chosen per run.

  • HTML, CSS and JS preview

    Open an index.html and preview the page on the phone, with a browser console for its logs and errors. Markdown files preview too.

  • Test cases for algorithm practice

    Read input from stdin, print the answer, and add up to 100 tests with expected output for AC, WA, TLE, MLE, RE, CE verdicts.

  • Web projects from GitHub

    Import a repository folder as a project, edit across files with project-wide search, then commit, push and pull.

Try it with a test case

Paste this into main.js, add a test case with the input below, and run. Prints 15.

const lines = require("fs").readFileSync(0, "utf8").trim().split(/\s+/).map(Number);
const [n, ...nums] = lines;
console.log(nums.slice(0, n).reduce((a, b) => a + b, 0));
Test input
3 4 5 6

Questions

Can I learn HTML, CSS and JavaScript on my phone with it?

Yes. Create a project with index.html, a stylesheet and a script, preview the page, and use the console to debug. Files are plain and open in any other editor.

Does it run Node.js packages from npm?

The JavaScript runtime executes your files with the standard library; installing npm packages is not part of a run. For algorithm practice and plain scripts that is all you need.

Is the JavaScript compiler free?

Yes. omni compiler is free to download and use, with ads, and you can start as a guest without an account.

Can I run JavaScript offline on my phone?

You can write and edit offline: projects are stored on your phone. Running needs a connection because the code executes in an isolated sandbox on our servers; runs you start offline are queued and sent when you reconnect.

Which Android versions does the JavaScript compiler support?

Android 7.0 and newer, on phones and tablets. Tablets get a split view to edit two files side by side.

Other languages

65 languages in all; see every language page.

Start coding on your phone.

Download omni compiler and run your first program in seconds.