Code playground
Try HTML, CSS and JavaScript together and see the result and the console, in a sealed sandbox.
Press Run, or Ctrl + Enter (⌘ + Enter on a Mac) while typing. The code runs in a sealed frame that cannot reach other sites.
Result
Console
- Messages from console.log and errors appear here.
Missing a feature or found a bug in Code playground? Tell me on X (@_andrewtran) or by email.
How to use Code playground
- Write HTML, CSS and JavaScript in the three boxes.
- Select Run, or press Ctrl + Enter.
- See the page in Result and your messages in Console.
Questions and answers
Is my code sent anywhere?
No. It runs in your browser, inside a sealed frame. The frame has no access to this site, your storage or other websites.
Can my code load a library or call an API?
No. The frame is blocked from the network, so scripts and data from other sites do not load. Paste the code you need into the JavaScript box.
Why does nothing happen until I press Run?
Running on every keystroke would run half-typed code. A loop that never ends could then freeze the page before you finish typing.
Related tools
HTTP client
Send GET, POST, PUT, PATCH and DELETE requests from your browser and read the status, headers and body.Format JSON
Pretty-print, minify and validate JSON, with optional key sorting.Base64 encode and decode
Convert text to Base64 and back, with full Unicode support.URL encode and decode
Percent-encode text for use in URLs, or decode it back.