Playground Tools
Write and run code in your browser and see the result beside it. Pick a language or framework and start writing.
Showing 39 of 39 tools
All Playground tools
JavaScript Playground
TrendingRun JavaScript online with an HTML page. See the live preview and the console output side by side.
HTML Playground
TrendingWrite HTML and see a live preview as you type. Edit a full page with its own styles, then copy it or download it as an HTML file.
Python Playground
TrendingRun Python in your browser and see what it prints in a console. Real Python with the standard library, and packages such as numpy that load when you import them.
React Playground
TrendingWrite React components in JSX and see them render live, with console output beside the preview. Uses React 18, so you can try hooks without a build tool.
SQL Playground
Write SQL and see the results as tables. Runs SQLite in your browser, so you can create tables, insert rows and query them, with no database to set up.
Tailwind CSS Playground
Write HTML with Tailwind CSS classes and watch the preview update as you type. Uses Tailwind CSS 4, with a CSS tab and a tailwind.config.js tab for your own theme.
CSS Playground
Edit HTML and CSS side by side and watch the result update live. Try layouts, colours, animations and transitions without setting up a project.
TypeScript Playground
Run TypeScript online and see the console output and an HTML page together. Types are removed when the code runs, not checked.
Mermaid Playground
Turn text into flowcharts, sequence diagrams, class diagrams and Gantt charts. The diagram updates as you type, a Config tab sets themes and options, and syntax errors show in the preview.
Sass Playground
Write SCSS and HTML and see the compiled result live. Use variables, nesting, mixins, maps and loops, and view the CSS that Sass produces.
Vue Playground
Write Vue 3 components and see them render live, with everything you log shown in a console beside the preview. Edit the template, script and CSS in separate tabs.
LaTeX Playground
Write LaTeX maths and see it typeset live. Fractions, sums, integrals, matrices and aligned equations, each formula shown on its own.
GraphQL Playground
Write a GraphQL schema, some sample data and a query, and see the result. A safe place to learn GraphQL and try queries with no server.
YAML Playground
Write YAML and see it checked and shown as a tree as you type. Handles anchors, aliases and several documents, and shows the line of any error.
JSON Playground
Write JSON and see it checked and shown as a collapsible tree as you type. Errors show what is wrong, and Format tidies the code.
XML Playground
Write XML and see it checked and shown as a tree as you type. Attributes and text are shown clearly, and errors show the line and column.
Markdown Playground
Write Markdown and see it as a formatted page as you type. Headings, lists, tables, task lists and code blocks are all supported.
SVG Playground
Write SVG code and see the picture as you type. It is drawn on a checkered background, and errors show the line and column.
Regex Playground
Write a regular expression and test it on your own text. Matches are highlighted as you type, with their positions and groups, and you can try a replacement too.
Alpine.js Playground
Write Alpine.js markup and see it react live, with everything you log shown in a console beside the preview. Edit the HTML, script and CSS in separate tabs.
Bootstrap Playground
Try Bootstrap 5 layouts and components live. Write HTML with Bootstrap classes, add your own CSS and script, and see the result with a console beside the preview.
jQuery Playground
Write jQuery and see it change the page live, with everything you log shown in a console beside the preview. Edit the script, HTML and CSS in separate tabs.
Node.js Playground
Run Node-style JavaScript in your browser with require, process and Buffer, and see everything you log in a console. No install needed.
Lua Playground
Run Lua 5.3 code in your browser and see everything you print in a console. No install needed.
Ruby Playground
Run Ruby 3.4 code in your browser and see everything you print in a console. The real Ruby interpreter, no install needed.
Go Playground
Write Go code and run it, with the output shown in a console. Your code is sent to a free online service to be compiled and run.
PHP Playground
Write PHP code and run it, with the output shown in a console. Your code is sent to a free online service to be run.
Vim Playground
Practise Vim in your browser. Try modes, motions, operators, search and replace in a real editor, with a cheat sheet beside it. No install, no setup.
Rust Playground
Write Rust code and run it, with the output shown in a console. Your code is sent to a free online service to be compiled and run.
Java Playground
Write Java code and run it, with the output shown in a console. Your code is sent to a free online service to be compiled and run.
C# Playground
Write C# code and run it, with the output shown in a console. Your code is sent to a free online service to be compiled and run.
SOQL Playground
Write SOQL and SOSL queries and run them against built-in invented sample data, with the results in tables. A learning subset of the language; no Salesforce account needed.
Apex Playground
Write Apex code and run it in your browser, with System.debug output in a console and SOQL and DML against sample data. A learning subset of Apex, with no Salesforce org needed.
Salesforce Formula Playground
Write a Salesforce formula, add sample field values as JSON and see the result, its type and any error, or run it over several rows. A learning subset of the formula language, with no Salesforce org needed.
Visualforce Playground
Write Visualforce markup and see it drawn, with merge fields filled from JSON data you provide. An approximation of Visualforce (no controller, no Salesforce org), in your browser.
LWC Playground
Write a Lightning Web Component in HTML, JavaScript and CSS, compile it with the open-source LWC compiler and run it in a preview, all in your browser. Plain LWC only: no Salesforce org, base components or Apex.
Bash Playground
Write a Bash script and run it, with the output shown in a console. Your code is sent to a free online service to be run.
Svelte Playground
Write a Svelte 5 component and see it run, with everything you log shown in a console beside the preview. Script, markup and style live together in one file.
Angular Playground
Write a standalone Angular component with signals and see it run, with everything you log shown in a console beside the preview.
About playground tools
Online code playgrounds with a live preview. Write HTML, CSS, Sass, Tailwind CSS, SQL, GraphQL, LaTeX, Mermaid, Markdown, YAML, JSON, XML, SVG or regular expressions and see the result as you type, or run JavaScript, TypeScript, Node.js, Python, Ruby, Lua, Go, Rust, Java, C#, PHP, Bash, React, Vue, Svelte, Angular, Alpine.js, Bootstrap and jQuery with a console beside the preview. Your code runs in a sandboxed frame, and you can copy it or download each file.
Frequently Asked Questions
Common questions about playground tools.
No. Open a playground and start writing. There is nothing to install or set up. Almost everything runs in your page, and only the Go, PHP, Rust, Java, C# and Bash playgrounds send your code to a free online service to run it, which each page says.
Use HTML or CSS for plain pages and styles, Sass if you write SCSS, and Tailwind CSS if you write Tailwind classes. Use JavaScript, TypeScript, Node.js, Python, Ruby, Lua, Go, Rust, Java, C#, PHP or Bash to run code, React, Vue, Svelte or Angular to build components, and Alpine.js, Bootstrap or jQuery to try those libraries on a page. Use SQL to try queries on a database, GraphQL to try queries on a schema, LaTeX for maths, and Mermaid to draw flowcharts and other diagrams from text. Use the Markdown, YAML, JSON and XML playgrounds to write and check documents and data, the SVG playground to draw pictures from code, and the Regex playground to test patterns on your own text. For everyday data and text, you can also use the Regex Tester, Markdown Previewer, JSON Formatter, YAML ↔ JSON Converter or SVG Optimizer.
Your latest code is kept in your browser on your device, so it is still there when you come back. Use the clear icon in the editor to start from scratch, and download the page if you want a copy.
The HTML, CSS, Sass, Tailwind CSS, SQL, GraphQL, LaTeX, Mermaid, Markdown, YAML, JSON, XML, SVG and Regex previews do not run your scripts, so they can safely update as you type, without any risk of a script that never ends. To run code, use the JavaScript, TypeScript, Node.js, Python, Ruby, Lua, Go, Rust, Java, C#, PHP, Bash, React, Vue, Svelte, Angular, Alpine.js, Bootstrap or jQuery playground.
The HTML, CSS, JavaScript and Node.js playgrounds do. The others load their library or engine from a public CDN the first time you use them, so they need a connection for that first load. Python, Sass and Angular load larger files, which your browser keeps afterwards.
Related categories
More tools that go well with playground tools.
Format, encode, decode and validate data. Essential tools for developers.
- JSON Formatter
- Base64 Encoder
- Base64 Decoder
Format text, transform content and improve readability.
- Word Counter
- Case Converter
- Text Diff Checker
Color palettes and design utilities for designers and creatives.
- Color Palette Generator