Learn. Create. Rediscover.
A free, open-source alternative to Microsoft Small Basic — built for beginners, students, teachers, and everyone who remembers the joy of writing their first program.
Small Basic made programming feel possible. A few readable commands, a blank canvas, and suddenly you could create something of your own.
For many of us, it was where our programming journey began.
That experience deserves a future.
Slim Basic brings the spirit of Small Basic to modern computers. It is an independent reimplementation of the Small Basic programming language, compiler, and runtime, written in C, with a lightweight browser-based IDE and native executable generation.
The mission is simple: make programming approachable, creative, and accessible to everyone again.
Free. Open source. Native. Independent. No .NET.
Download Slim Basic for Windows
- Download the ZIP file.
- Extract it to a folder of your choice.
- Open
slimbasic.exe. - Start creating!
No installation required.
System requirements: Windows 10 or 11 (64-bit).
Linux users can build Slim Basic from source using the instructions below.
- Beginners — Discover programming through a simple, readable language without unnecessary complexity.
- Students — Learn programming fundamentals by creating drawings, animations, games, and interactive applications.
- Teachers — Explore an accessible, free, and open-source programming environment for computer science education.
- Former Small Basic users — Rediscover the language that introduced you to the world of programming.
- BASIC enthusiasts — Enjoy the simplicity and creativity of BASIC on modern computers.
- Developers — Explore, contribute to, and extend an independent compiler and runtime written in C.
Whether you are writing your first program or returning to a familiar language years later, Slim Basic gives you a place to start.
Learning to program should begin with curiosity, creativity, and experimentation — not complicated development environments or overwhelming syntax.
Slim Basic is built around a few simple ideas:
- Programming should be easy to get started with.
- Learning should be visual, interactive, and fun.
- Educational programming tools should be freely accessible.
- A simple language can still create meaningful applications.
- The spirit of Small Basic should live on.
Slim Basic is more than a BASIC compiler. It is an effort to preserve an approachable way of learning programming and introduce it to a new generation.
- Readable, beginner-friendly BASIC syntax
- Familiar Small Basic commands and programming concepts
- Variables, conditions, loops, and subroutines
- Arrays, stacks, timers, and Unicode text
- Clean, browser-based IDE
- Syntax highlighting
- Code completion
- Searchable command reference
- Built-in programming examples
- Embedded editor assets for offline use
- Graphics and drawing
- Turtle graphics
- Animated shapes
- Images and sound
- Buttons and text boxes
- Mouse and keyboard events
- Interactive graphical applications
- Compile BASIC programs into native executables
- Export programs as C source code
- Command-line compilation and syntax checking
- No .NET runtime required
- No JavaScript build toolchain required
- Compiler and runtime written in C
- Windows and Linux support under active development
- MIT-licensed source code
- Independent development
- Open to community contributions
You do not need hundreds of lines of code to create something interesting.
Try this simple turtle graphics program:
GraphicsWindow.Title = "Hello, Slim Basic!"
GraphicsWindow.PenColor = "SteelBlue"
Turtle.Speed = 10
For i = 1 To 36
Turtle.Move(100)
Turtle.Turn(170)
EndForWith just a few lines of readable BASIC code, you can turn simple instructions into a geometric drawing.
Change the colors, experiment with the angles, adjust the movement, and see what happens.
Write. Run. Experiment. Learn.
That is what programming should feel like.
Slim Basic aims to make programming accessible to students and educators without introducing unnecessary technical barriers.
Its simple syntax and visual programming capabilities make it a potential starting point for teaching:
- Algorithmic and computational thinking
- Variables and data
- Conditional statements
- Loops and repetition
- Subroutines
- Coordinates and geometry
- Graphics and animation
- Event-driven programming
- Problem-solving through creative projects
- Simple game development
Students can focus on understanding programming concepts while creating something they can see, interact with, and share.
The long-term vision is to build a welcoming educational ecosystem around Slim Basic, including beginner-friendly tutorials, classroom exercises, example programs, and teaching resources.
Teachers and educators are especially welcome to contribute ideas, feedback, and learning materials.
Welcome back!
If Microsoft Small Basic was your first programming language, much of Slim Basic will feel familiar.
The project aims to preserve the approachable syntax, recognizable commands, turtle graphics, and creative programming experience that made Small Basic special.
Unlike the original implementation, Slim Basic uses an independent compiler and runtime written in C and can compile programs into native executables without requiring .NET.
Existing Small Basic programs are a valuable part of this project's future.
Compatibility is still under active development. Some existing programs may require modifications, and not every original Small Basic API is currently supported.
If you have an old Small Basic program, try it out. Compatibility reports, examples, and feedback are always welcome.
Your first programming language might have a new chapter.
Slim Basic uses a GCC-compatible compiler and a modern web browser for its development environment.
From the repository root, build Slim Basic:
gcc -std=c11 -O2 main.c -o slimbasic -lm -ldlLaunch the IDE:
./slimbasicBuild Slim Basic using:
gcc -std=c11 -O2 -finput-charset=UTF-8 main.c -o slimbasic.exe -lm -lcomdlg32 -lws2_32Launch the IDE:
slimbasic.exe- A GCC-compatible C compiler for compiling programs
- A modern web browser for the IDE
- SDL2 2.0.7 or newer for graphics and audio
- Optional libraries for additional image formats, network loading, and richer text rendering
- Zenity or KDialog for file dialogs on Linux
The editor assets are embedded, allowing the development environment to be used offline without a JavaScript build toolchain.
Slim Basic can also be used directly from the terminal.
./slimbasic program.sb./slimbasic --run program.sb./slimbasic --check program.sb./slimbasic --build program.sb -o app./slimbasic --emit-c program.sb -o app.cOn Windows, use slimbasic.exe instead of ./slimbasic.
Slim Basic is an actively developing open-source project.
- Linux compiler, runtime, editor, and export tests have passed.
- Windows support is implemented but requires further build and desktop validation.
- Microsoft Small Basic compatibility is incomplete and continues to evolve.
- Some existing Small Basic programs may require changes.
Bug reports, compatibility tests, and feedback are particularly valuable at this stage.
The long-term goal is to make Slim Basic a reliable, accessible, and community-driven programming environment for learning, teaching, and creative coding.
Future development goals include:
- Expanding Microsoft Small Basic language and API compatibility
- Improving compiler and runtime reliability
- Improving Windows and Linux support
- Growing the collection of example programs
- Creating beginner-friendly programming tutorials
- Developing classroom-ready lessons and exercises
- Providing resources for teachers and educators
- Building a welcoming community around BASIC programming
- Preserving and rediscovering classic Small Basic projects
These are development goals rather than promises of currently available features.
You do not have to be a compiler developer to make a difference.
There are many ways to contribute:
- Report bugs and compatibility issues.
- Share your old Small Basic programs.
- Create example programs, drawings, animations, or games.
- Implement missing Small Basic APIs.
- Improve the compiler, runtime, or IDE.
- Write documentation and tutorials.
- Create educational exercises and classroom materials.
- Help translate learning resources.
- Share ideas and feedback.
Every working program, bug report, tutorial, and contribution helps bring Small Basic into the future.
Beginners, experienced developers, teachers, students, and former Small Basic users are all welcome.
If you believe that programming should be simple, creative, and accessible, you can help Slim Basic grow.
- Give this repository a star.
- Share it with someone who used Microsoft Small Basic.
- Introduce it to students, teachers, or programming clubs.
- Create something with Slim Basic and share your source code.
- Open an issue with your ideas or feedback.
A small contribution can help introduce someone else to the joy of programming.
Slim Basic is free and open-source software released under the MIT License.
See the source code for license information and embedded-font notices. Third-party dependencies retain their respective licenses.
Slim Basic is an independent project and is not affiliated with, endorsed by, or sponsored by Microsoft.
For those who remember their first line of BASIC.
For those who have yet to write theirs.
For everyone who believes programming should be accessible to all.
Small Basic for a new generation.
Learn. Create. Rediscover.