Online Common Lisp Compiler
Run Common Lisp online with SBCL 2.6. Write your forms, press Run, and SBCL compiles each one to native code and runs it, printing the condition and a backtrace if something goes wrong. Programs can read input with read-line as they run, and SBCL's contribs load with require.
How to run Common Lisp code online
- This page opens with Common Lisp 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.
SBCL 2.6 on Online IDE
- Your program runs with SBCL 2.6 as a script, each top-level form compiled and run in turn.
- (read-line) reads a line of input, and text written before it shows at once, with no need for finish-output.
- parse-integer with :junk-allowed t returns nil instead of signalling an error on text that is not a number.
- SBCL's contribs load with require, such as (require :sb-posix), but Quicklisp libraries are not available.
Example: a Common Lisp program that reads input
(format t "Enter a whole number: ")
(let ((n (parse-integer (read-line) :junk-allowed t)))
(if (and n (plusp n))
(format t "Divisors of ~d: ~{~d~^, ~}~%" n
(loop for d from 1 to n when (zerop (mod n d)) collect d))
(format t "Please enter a whole number above zero.~%")))
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 Common Lisp does Online IDE use?
SBCL 2.6, Steel Bank Common Lisp, which compiles each form to native code as the script runs.
Can a Lisp program read input?
Yes. (read-line) reads a line and (read) reads a Lisp object. Type into the output panel while the program waits and press Enter.
What happens when my program signals an error?
The script stops, and SBCL prints the condition and a backtrace in the output panel instead of starting the debugger.
Can I use Quicklisp or ASDF systems?
No. Programs cannot download libraries. Standard Common Lisp and SBCL's own contribs, loaded with require, are available.
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.