Free Online 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.
Press Run, or Ctrl or Cmd + Enter, to run your code. The page shows in Preview and everything you log shows in Console. Use Stop if a script never ends. Vue 3 is loaded for you as the global Vue, and the HTML tab is your template.
Preview
Console
Output appears here. Press Run, then try console.log("Hello")
How to use
Write your template in the HTML tab, with an element that has the id "app" (for example a div) to mount into.
Write your app in the App.js tab, using the global Vue, for example const { createApp, ref } = Vue.
Press Run, or Ctrl or Cmd + Enter, to run it. The preview shows the page and the console shows what you log.
Use Stop if your code never ends. Turn on Auto-run if you want it to run as you type.
Copy the code, download a zip of your files or clear the editor with the icons above it.
Open the full screen editor for more room, and use the A buttons to resize the text.
Press Format to tidy the tab you are editing, or untick Wrap long lines to scroll sideways instead.
Why use this tool
Vue 3
The current Vue with the Composition API, the Options API, directives and the template compiler, loaded for you.
Three tabs
Keep the template, the script and the CSS apart, like in a real page.
Console
console.log, warnings and errors from your code, and Vue's own warnings, are shown beside the preview.
Isolated preview
Your code runs in an isolated frame, so it cannot reach this site or your other tabs.
One-click formatting
Tidy the indentation and spacing of the tab you are editing with one click or Shift + Alt + F.
Comfortable editor
Resize the text, switch line wrapping on or off, or go full screen with the editor and preview side by side.
About this tool
Write Vue 3 and see it render live in your browser. Put your template in the HTML tab and your app in the App.js tab, add styles in the CSS tab, and press Run. This online Vue playground suits learning the Composition API, reactive state and directives such as v-model and v-for, or testing an idea without creating a project. Vue is loaded as the global Vue with the template compiler included, and everything you log appears in a console beside the preview.
This Vue playground lets you write Vue 3 and see it render live. Put your template in the HTML tab, your app in the App.js tab and your styles in the CSS tab, then press Run. It suits learning the Composition API, reactive state and directives such as v-model and v-for, or testing an idea without creating a project.
Everything you log appears in a console beside the preview. For React use the React Playground.
Frequently asked questions
Vue 3, using its global build with the template compiler, which is loaded from a public CDN. It is the development build, so Vue's helpful warnings show in the console.
Not directly. Write the template in the HTML tab and the script in the App.js tab instead. You can also pass a template string to createApp.
Only what is loaded for you, which is Vue. You can load other scripts from a public https address in your HTML tab, but they must be allowed by the browser from that address.
Check that your template has an element to mount into, with the id "app", that your script calls mount on it, and that you pressed Run. Errors show in the console.
Yes, the first time. Vue is loaded from a public CDN when you press Run.
Yes. Press Format, or Shift + Alt + F while you are typing, to tidy the tab you are editing. If the code has a syntax error it is left unchanged and the problem is shown under the editor.
Yes. Untick Wrap long lines under the editor and it scrolls sideways instead. Your choice is remembered on this device.
Write your template in the HTML tab and your app in the App.js tab, then press Run. The result appears in the preview.
Yes. Vue 3 is loaded as the global Vue with the template compiler included.