Hello, World
(display "Hello, World!")
(newline)Tap Run to execute
main.scm · output appears here
Press Run to execute
Output streams here as your program runs.
Scheme is a minimalist, elegant dialect of Lisp known for its clean design, lexical scoping, first-class procedures, and proper tail calls. Programs are written as S-expressions where code and data share the same parenthesized structure, enabling powerful metaprogramming through macros. Scheme's small core and uniform syntax make it a favorite for teaching programming language concepts, recursion, and functional programming.
CompileBytes runs Scheme using GNU Guile version 3.0, the official extension language of the GNU project. Guile implements modern Scheme standards along with many extensions and a rich standard library. The online environment lets you evaluate S-expressions, define procedures, and experiment with recursion and higher-order functions without installing Guile locally, making it a convenient way to learn and practice idiomatic Scheme.
main.scm is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
(display "Hello, World!")
(newline)(define (square x)
(* x x))
(display (square 7))
(newline)(define (factorial n)
(if (= n 0)
1
(* n (factorial (- n 1)))))
(display (factorial 5))
(newline)(define nums '(1 2 3 4 5))
(for-each
(lambda (n)
(display (* n n))
(newline))
nums)(define nums '(1 2 3 4 5))
(display (map (lambda (x) (* x x)) nums))
(newline)
(display (fold-left + 0 nums))
(newline)(define (classify n)
(cond ((> n 0) 'positive)
((< n 0) 'negative)
(else 'zero)))
(let ((x -3))
(display (classify x))
(newline))(define (sum-to n)
(let loop ((i 1) (acc 0))
(if (> i n)
acc
(loop (+ i 1) (+ acc i)))))
(display (sum-to 100))
(newline)(define ages '((alice . 30) (bob . 25)))
(display (assq 'bob ages))
(newline)
(display (cdr (assq 'alice ages)))
(newline)(define nums '(1 2 3 4 5 6 7 8))
(define evens (filter even? nums))
(display evens)
(newline)
(display (length evens))
(newline)The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Type or paste your code into the editor, then click Run (or press Ctrl/Cmd + Enter) to execute it.
Output streams into the console panel, including runtime errors, exit status, and execution time.
Nothing to install and no account to create — code runs in an isolated hosted runtime.
Language-aware autocomplete and IntelliSense suggestions where the editor has a matching language service
Syntax highlighting, with native compiler and runtime errors shown in the console
Bracket matching, auto-indentation, code folding, and a minimap
Multi-cursor editing plus find & replace (Ctrl/Cmd + F)
Full undo/redo history and copy to clipboard
Built on Monaco — the same editor that powers VS Code
Run on demand, or turn on Auto-run to execute on every change
Stop long-running or infinite programs at any time
A real console shows standard output, errors, exit status, and execution time
Pass standard input (stdin) to your program from the Input panel — one value per line
Switch between light and dark themes
Adjust font size and other editor settings
Toggle side-by-side or top/bottom layouts
Enter distraction-free fullscreen mode
Generate a shareable link to your exact code in one click — no login needed
Your work autosaves to your browser, so you can pick up where you left off
Copy the active file to your clipboard
Run code: Ctrl/Cmd + Enter
Find & replace: Ctrl/Cmd + F
Open the full shortcut list from the keyboard icon in the toolbar
Scheme is one of 46 single-file compiler scratchpads. Each run submits only main.scm; local sibling-file imports are not enabled.
Linked-project languages (23): Node.js, TypeScript, Deno, Python, C, Go, Dart, Swift, Rust, Ruby, PHP, Java, Kotlin, C++, C#, Nim, Crystal, Haxe, Zig, Scala, D, Bun, Objective-C.
Single-file scratchpads (46): Matplotlib, NumPy, pandas, Haskell, Clojure, Perl, Lua, Tcl, jq, Raku, Elixir, Bash, Zsh, Nushell, R, Assembly (NASM), Julia, Octave, Groovy, PowerShell, Visual Basic .NET, Odin, Pascal, Lisp, Erlang, CoffeeScript, COBOL, BASIC, V, Racket, OCaml, Prolog, AWK, Emacs Lisp, Emojicode, Forth, F#, Fortran, Assembly (NASM64), Solidity, Mojo, Ada, WASM (WAT), Gleam, Shell Script (sh), Scheme.
Download file exports the active Scheme source file.