Online DuckDB Editor
Online DuckDB Editor · Examples & offline guide
Online DuckDB Editor
Run analytical SQL queries with DuckDB directly in your browser with local execution and automatically saved drafts. Use this free DuckDB online editor to practice programs without installing software, then keep coding offline after the editor and runtime show “Available offline”.
Practice DuckDB programs in this playground
Use this DuckDB SQL playground to practice analytical queries, aggregations, and window functions. Test SQL on sample data in your browser.
How to run DuckDB online
Edit the starter program, choose Run, and read the output. No account or installation is required. Execution uses DuckDB-Wasm 1.32.0 on your device.
DuckDB example program
CREATE TABLE sales (region VARCHAR, amount INTEGER);
INSERT INTO sales VALUES ('North', 20), ('North', 22), ('South', 9);
SELECT region, SUM(amount) AS total FROM sales GROUP BY region ORDER BY total DESC;
Questions about this editor
How do I use this DuckDB online editor?
Start with the example or write your own DuckDB program, choose Run, and view the output. BrowserCode uses DuckDB-Wasm 1.32.0 for local execution in your browser. The playground is free and does not require an account.
Can I run DuckDB online without installing a compiler or interpreter?
Yes. This browser-based DuckDB playground loads the bundled DuckDB-Wasm 1.32.0 runtime for you. Edit a program and choose Run to test it locally. The supported features and limitations are listed below.
Can I use this DuckDB editor offline?
Yes. Open this language while connected and wait for “Available offline” before disconnecting. The editor and language runtime must finish saving to browser storage. You can then edit and run code offline in this browser. Clearing site data or browser storage eviction removes saved downloads. Optional cloud sync and AI need internet access.
What are the limits of running DuckDB in a browser?
DuckDB SQL runs in a fresh in-memory browser database. External files, extensions, network access and parallel threads are unavailable. Results are limited to 200 displayed rows.
Is my code private and saved?
Code execution and free drafts stay on your device. Drafts are saved in this browser; download files to keep a separate copy. Optional paid Supporter cloud sync and AI send the work or context you choose to share and require an internet connection.