Online Julia Compiler
Run Julia online with Julia 1.12. Write a script, press Run, and see the output beside your code, with error messages and line numbers if something goes wrong. Julia takes a second or two to start on the first run, and programs can read input with readline as they run.
How to run Julia code online
- This page opens with Julia 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.
Julia 1.12 on Online IDE
- Scripts run with Julia 1.12 on one thread, and the first run of a page takes a second or two while Julia starts.
- readline() returns the line you type in the output panel, and parse or tryparse turns it into a number.
- The standard library is available, with modules such as LinearAlgebra, Random, Dates and Printf, but packages cannot be added with Pkg.add.
Example: a Julia program that reads input
isprime(n) = n > 1 && all(n % d != 0 for d in 2:isqrt(n))
print("Show the prime numbers up to: ")
limit = tryparse(Int, readline())
if limit === nothing
println("That is not a whole number.")
else
primes = filter(isprime, 1:limit)
println(length(primes), " primes: ", join(primes, ", "))
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 Julia version does Online IDE use?
Julia 1.12 on Linux, running on one thread.
Why does the first run take longer?
Julia takes a second or two to start on the first run of a page. Runs after that start sooner.
How does a Julia program read input?
Call readline(), which waits for a line you type in the output panel and returns it without the newline. Turn it into a number with parse(Int, line), or tryparse to handle other input.
Can I install packages with Pkg.add?
No. Programs cannot download anything, so only the standard library is available, with modules such as LinearAlgebra, Random, Dates and Printf.
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.