A compiler from OCaml bytecode to Javascript.

It makes OCaml programs that run on Web browsers. It is easy to install as it works with an existing installation of OCaml, with no need to recompile any library. It comes with bindings for a large part of the browser APIs.

This web-based OCaml toplevel is compiled using Js_of_ocaml.


Enter/Return Submit code
Ctrl + Enter Newline
Up / Down Browse history
Ctrl + l Clear display
Ctrl + k Reset toplevel
Tab Indent code

Try to execute samples

See the generated javascript code