Online Elixir Compiler
Run Elixir online with Elixir 1.19 on Erlang/OTP 28. Your file runs as a script with elixir main.exs, so you can define modules, pipe data through Enum and print the result without setting up a Mix project. Programs can read input with IO.gets as they run.
How to run Elixir code online
- This page opens with Elixir selected, so you can start typing straight away.
- Write your code in the editor, or open files from your computer: single files, or a whole project as a .zip.
- Press Run, or Ctrl+Enter. The output appears in the panel beside the editor, and when the program asks for input you type it there and press Enter.
- Share a copy with a link, or save your files to your computer.
Elixir 1.19 on Online IDE
- main.exs runs as a script with elixir main.exs, from top to bottom, with no Mix project around it.
- IO.gets("Prompt: ") shows the prompt and returns the line you type in the output panel, newline included, so pipe it into String.trim/1.
- Modules defined with defmodule earlier in the file can be called further down.
- Elixir's standard library and the Erlang/OTP 28 modules are available, but Hex packages and Mix dependencies are not.
Example: an Elixir program that reads input
IO.gets("Enter a sentence: ")
|> String.downcase()
|> String.split()
|> Enum.frequencies()
|> Enum.sort_by(fn {word, count} -> {-count, word} end)
|> Enum.each(fn {word, count} -> IO.puts("#{word}: #{count}") end)
Features of this tool
- Simple and fastA clean, lightweight editor that opens instantly.
- Powered by AceThe Ace code editor, with syntax highlighting, autocompletion and bracket matching.
- Interactive programsType input into the terminal while your program runs.
- Several filesWork in tabs, open files or a .zip from your computer, and save the project back to disk.
- Made for learningHelpful for beginners to learn and practice programs.
- Light and dark themesPlus 39 editor themes, a choice of coding fonts, and Vim, Emacs or VS Code keys.
- Keep your outputCopy or download the program output in one click.
- Share by linkSave your code in the cloud and open it anywhere.
Frequently asked questions
Which Elixir version does Online IDE use?
Elixir 1.19 on Erlang/OTP 28, on Linux. Your file runs as a script with elixir main.exs.
Can I use Hex packages or Mix.install?
No. Programs cannot download anything, so packages are not available. The Elixir standard library and Erlang modules such as :math and :rand work.
How does an Elixir program read input?
Call IO.gets("Prompt: "), then type into the output panel and press Enter. The line comes back with its newline, so pass it through String.trim/1.
Can I define modules in the script?
Yes. Define them with defmodule above the code that uses them. They are compiled as the script runs.
Contact us
For any feedback, queries or issues, please feel free to contact us or write to . We value your input and are committed to providing the best possible experience for our users.