Edit fiddle - JSFiddle - Code Playground (original) (raw)

Color Palette Generator

Generate a cool color palette with a few clicks

CSS Flexbox Generator

Generate your CSS Flexbox layout in the simplest of ways

Coder Fonts

Curated list of quality monospace fonts for coders

Share or embed fiddle

Customize the embeddable experience for websites

Tabs:

JavaScript HTML CSS Result

Visual:

Light Dark

Embed snippetPrefer iframe?:

Editor settings

Customize the behavior and feel of the editor

Behavior

Auto-run code

Only auto-run code that validates

Auto-save code

Live code validation

Hot reload CSS

Hot reload HTML

General

Line numbers

Wrap lines

Indent With Spaces

Code Autocomplete

Console

Console in the editor

Clear console on run

Your recent fiddles

Recently created fiddles, including ones created while logged out

JSFiddle changelog

A log of all the changes made to JSFiddle – big and small.

You can now use different monospace fonts in the editor − we now have a curated list of pretty awesome fonts available including premium ones. Just open the Coder Fonts mini-app from the sidebar or from Editor settings. My current favorites are Input and Commit Mono.

Our CSS Flexbox generator lets you create a layout, and skip knowing the confusing properties and value names (let's be honest the W3C did not make a good job here). Not gonna lie, this was heavily inspired by flexer.dev but coded completely from scratch.

Adding External Resources will no longer create a list of resources in the sidebar but will be injected as a LINK or SCRIPT tag inside of the HTML panel.

The Code Completion will now also have the context of all panels before suggesting code to you - so if for example you have some CSS or JS, the HTML panel will suggest code based on the other two panels.

Introducing some AI sprinkle in the editor - Code Completion based on the Codestral model (by Mistral).
For now it's a BYOK implmentation which means you need to provide your own API Key − you can get it for free.

After much deliberation I've decided to make the switch from CodeMirror to Monaco.
There's a few reasons for this. CodeMirror 5 is no longer being developed, and the switch to 6 would be a huge rewrite since there's not much compatibility between the two versions.
Monaco itself has lots of features already built-in, things that took quite a few external plugins to get into the CodeMirror implementation.
I'm incredibly thankful to Marijn for his work on CodeMirror, it has served well for many years.

Technical debt is a drag man. Remember the time when MooTools was state-of-art JS framework? We do and so much of JSFiddle was still dependant on it till this day, but since almost all MooTools features are now available in native JS it was high-time to strip it out of the codebase.
This took around a week of work, lots of testing, but it's now done. And the final package of our JS bundle is ~30% smaller.

Add a new collection

Collect your fiddles in collections

Get a Mistral API Key

A short guide to getting a free Mistral API Key.

Please Whitelist JSFiddle in your content blocker.

Help keep JSFiddle free for always by one of two ways:

Join the 4+ million users, and keep the JSFiddle dream alive.

All ads in the editor and listing pages are turned completely off.

You get to try and use features (like the Palette Color Generator) months before everyone else.

Sort and categorize your Fiddles into multiple collections.

You can make as many Private Fiddles, and Private Collections as you wish!

Debug your Fiddle with a minimal built-in JavaScript console.