Overview
Kotlin Playground is JetBrains' official browser-based editor for writing, running and sharing Kotlin code. You type your declarations and a main() function, press Run, and the code is compiled and executed for you, with the output shown under the editor. Nothing needs to be installed, which makes it handy for trying out a language feature, testing a snippet from the docs or showing someone a short example.
The settings let you pick the Kotlin version, including preview builds of upcoming releases, and the backend: JVM, JavaScript (with a Canvas mode), or JUnit for running tests. For JavaScript targets you can look at the generated JS. The standard library and kotlinx.coroutines are imported automatically, and there is a field for program arguments.
You can copy a link to share your code, or embed a runnable snippet in a web page or a Medium article. The embeddable component behind it is open source under the Apache 2.0 licence and can be pointed at your own compiler server.
Categories
Features
- Edit and run Kotlin code in the browser with highlighting and code completion
- Choice of Kotlin version, including preview builds of future releases
- JVM, JavaScript, Canvas and JUnit backends
- View the generated JavaScript for JS targets
- Program arguments field for main(args)
- Standard library and kotlinx.coroutines imported automatically
- Share code by link or embed a runnable snippet in a web page or Medium post
- Open-source embeddable component that can use a self-hosted compiler server
Privacy
See the official privacy policy. Code you run is sent to a compiler server to be compiled and executed.
Pros & Cons
Pros
- Official tool from the makers of Kotlin
- No installation or project setup needed
- Easy to compare behaviour across Kotlin versions and targets
- Embeddable snippets are useful for blogs, docs and teaching
Cons
- Meant for snippets, not multi-file projects or external dependencies
- Code is compiled on a remote server, so an internet connection is required
- Shared links let anyone who has them see your code
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
An online code editor and playground for HTML, CSS, and JavaScript.
Freemium No Signup Web -
A social code playground for front-end code.
Freemium Web -
A collaborative JavaScript, HTML, and CSS playground.
Open Source Web -
Code Playgrounds · PlayCode
A fast online JavaScript playground with live preview.
Freemium No Signup Web