Experiment with the Office JavaScript API without ever leaving Excel, Word, or PowerPoint! You can use Script Lab to:

  • Create and edit code snippets that can include JavaScript, HTML, CSS, and references to libraries and data on the web
  • Run the snippets and instantly see the result in a task pane and in the Office document
  • Get started quickly with a selection of samples
  • Share and save your snippets with GitHub gists
  • Learn the JavaScript API with the help of IntelliSense while you edit
  • Try TypeScript: make use of lambda functions, template strings, or even the latest TypeScript 2.0+ features like async/await
  • Prototype an add-in you’re planning to develop

There’s no need to install any other software or configure your environment: as long as you have Office, you can get started in seconds. Script Lab works in Excel, Word, and PowerPoint (Office 2013 and later, Office Online, and Office for Mac). The source code for Script Lab is open to the community at We welcome your contributions.


Meet the team

Script Lab Team
"Writing code for Office can be simple and delightful."
The Script Lab Team

Garage Team

Michael Zlatkovsky, Bhargav Krishna, Daniel M. Galan, Jakob Nielsen, Michael Saunders

Script Lab Team

Redmond Lab


Script Lab began as a summer hackathon project at the 2016 Microsoft Hackathon. The goal was to transform the “getting-started” experience for building Office Add-ins by making it simple and delightful. Since then the engineers snuck hundreds of hours from family, sleep, and their day jobs to make Script Lab a reality. At last, we have a tool that makes it easy to try the Office JavaScript APIs, whether you’re an interested Excel power-user or a professional developer prototyping an add-in! Now that the project is open-source, we hope the community will help by sharing their snippets and continuing to improve the Script Lab experience.