Go Playground

playgroundGo 1.27.1compiled in this browser

Loading the editor…

Press Run (⌘Enter) or Test. Nothing runs until you do.
Local draft· nothing is uploaded until you shareLn 1, Col 1GoGo 1.27.1

GO PLAYGROUND · RUNS ON YOUR DEVICE

A Go compiler in your browser

Write a real multi-file Go project, run it, test it and step through it. The Go 1.27 compiler runs locally in a browser worker, so your code is not uploaded until you deliberately share a room. No account is needed, and your draft stays in this browser.

Files, folders and packages

Create files, folders and Go packages straight in the file tree. New files get the right package clause, test files get a test to fill in, and a package is importable as soon as it exists.

Templates and SQLite

Start from the app's project templates: a Gin REST API, chi, Cobra, net/http and more. Add a SQLite database from the file tree, edit its tables and run SQL beside your Go code. Learn it in the SQLite course. The Drone flight template flies a simulated quadcopter and replays the flight under Output.

Run, test and debug

Run with standard input, run go test, check, gofmt and build a .wasm file. The debugger pauses at breakpoints and shows the call stack and local values.

Code together

Share an end-to-end encrypted one-hour room with named cursors, or connect an AI agent through the GopherForge MCP companion. Code only runs when someone presses Run on their own device.

Limits, packages and recovery are in the Playground guide. New to Go? Start with Go fundamentals or browse the project templates.