Take the 2-minute tour ×

With so many languages and frameworks that exist, and with new ones appearing all the time, I don't have the time to download, install, and configure each one to evaluate it. In the past I've run across webapps that allow one to write or paste code into a window, and see the results in realtime in the browser, usually in a tutorial setting.

What are your favorite sandbox sites for a given technology?

Edit: @fretj provided the link to the excellent Google Code Playground (+1 upvote), but I thought that it was just for experimenting with Google's own apps (Search, Maps, Earth, Language, etc). But it turns out that it contains a few hidden gems: In addition to their apps, you can try out the many Javascript libraries that they host including jQuery, jQuery UI, MooTools, Dojo, and Prototype Scriptaculous.

They're all hidden under the Libraries category in the "Pick an API" box. I overlooked the category because I thought it was for an app called Google Libraries. There's also a Javascript category for Javascript itself.

share|improve this question
add comment

6 Answers

W3Schools.com includes mini-sandboxes (examples) in many lessons of their tutorials. Each example is used to illustrate that particular lesson, but you can add to or change the code to use it as a sandbox. There are examples for Javascript, DOM scripting, Ajax, SQL, ADO, ASP and ASP.NET.

JS Bin is a sandbox for Javascript and CSS testing, with built in support for many scripting libraries, including jQuery, script.aculo.us, YUI, MooTools and dojo. So you can try out example code without downloading and installing each of the libraries. In addition it allows you to save your code snippets with a unique URL (like a pastebin), and allows collaborative editing of each snippet.

Try Ruby is an very basic interactive tutorial that introduces Ruby to the complete novice. It's done in a serial fashion, so you have to go from start to finish in one go, but it doesn't take long. [Try Ruby was taken down on Aug 19 by its owner _why. Many people hope that his content will return. Why's (poignant) Guide to Ruby has HTML and PDF mirrors.]

OpenSourceCMS houses dozens of open source software packages and allows you to try out both the front end and the administrative backend functions of the most popular portals, blogs, image galleries, and forums. You have full admin rights and can change any of the content on each of the packages, and then see the results of those changes from the user's perspective.

JSONLint is an online JSON validator with syntax checking that isn't overly complicated, but works as advertised.

For regular expressions try Rubular built with Ruby, RegExPal built in Javascript, or RegExr, which is very helpful for regex beginners because it has code sense built in.

Codepad is a pastebin with a twist: it has a interpreter/compiler built in for 13 languages, including C, C++, Haskell, Scheme, Python, and PHP. So you can not only use it to share code, but also to run or test code when you're away from your programming environment (think boring but mandatory meeting or long commute on mass transit, etc.)

share|improve this answer
FYI, the Ruby sandbox is currently broken. Everything returns a 502 Bad Gateway response. –  nickf Jan 21 '09 at 6:08
Try Ruby is maintained in spirit at tryruby.org –  Jeff Yates Apr 15 '10 at 12:31
jsFiddle is similar to JS Bin, but it has four panes (HTML, CSS, Javascript, and rendered result) that are all open at once. So it feels more efficient than switching between the code and the results in JS Bin. Try some of the examples to start with a not-as-blank canvas. –  flamingLogos Jul 29 '11 at 0:53
@flamingLogos jsFiddle seems to be the defacto standard for adding examples of source code now. I was instructed to do so when I submitted a question regarding it... –  David Is Not Here Aug 29 '12 at 14:29
@flamingLogos I prefer JS Bin. It's open source. It has a live preview panel, with JSHint suggestions as you type. Plus, it has a super customizable editor with Emmet baked in. –  Web_Designer May 26 '13 at 3:11
add comment

eXist-db has a sandbox that is very helpful for playing with XQuery/XPath.

share|improve this answer
add comment

You can also try Heroku for Ruby on Rails, and AppJet for server-side JavaScript.

Slightly off-topic, but I highly recommend the "Why's Poignant Guide to Ruby" from the same guy who developed the "Try Ruby" site - you won't believe how fast and easy it's to learn Ruby, aided by cartoons!

share|improve this answer
Why's Poignant Guide to Ruby is certainly not your average software tutorial! Both left and right brained at the same time. –  flamingLogos Oct 17 '08 at 20:58
add comment

Lua has a Live demo on its site. Also show sandbox techniques...

share|improve this answer
add comment

Not sure if it totally fits this question, but this is a nice playground I've found recently:

Google AJAX APIs Playground

share|improve this answer
add comment

You can use wonderfl to compile and sandbox Flash/Actionscript/etc.

share|improve this answer
add comment

Your Answer


