QB64

What?

QB64 is a BASIC programming language. BASIC has fallen out of favor over the years but it is what many of us who started programming in the 1990’s or early 2000’s cut our teeth on.

The language was designed to be compatible with one of the most popular BASIC implementations – QBasic/QuickBasic. It is almost entirely compatible with QBasic/QuickBasic but there are some edge cases in which code is not completely compatible or the code does not exactly emulate the behavior of the earlier language.

The fact that QB64 is compatible with QB does not mean that it is limited to QB functionality. The language has been extended to include significant innovations and can be used to create real applications.

The thing I love most about QB64 is that it is quick and easy to learn just like its predecessor. You can build substantive applications without knowing an entire ecosystem of tools and reams of boilerplate.

This is the language I use to modernize W.R. Hutsell’s classic war games. At some point I’d love to entirely rewrite them in C# or JavaScript – but in the meantime, QB64 offers a quick way to modernize legacy code.

Downloading QB64

You can look at the official release page but it’s a confusing GitHub page, so I’ve included direct links to the latest version as of 3/31/2025 below.

Alternatively, you can use the web-based version, QBJS which requires no download or installation but may not be fully compatible with QB64.

For more on downloading, installing, and running QB64 see Terry Ritchie’s excellent tutorial Let’s Get QB64 Installed and the IDE Interface Configured

Installing QB64

Extract (unzip, decompress) the compressed file you downloaded. QB64 doesn’t need to be formally installed.

Launching QB64

Double-click on the QB64 binary.

How to Learn QB64

There are several good and fairly extensive resources for learning QB64:

  • Game Programming with QB64 by Terry Ritchie.
    • Covers installation, the IDE, variables, conditionals, branching, looping, graphics, subroutines, functions, input, arrays, string manipulation, math functions, file I/O, audio, sprites, and more.
  • QBasic / QB64 Tutorial List: A Computer Language for Beginners by SchoolFreeware.
    • Covers installation, printing to the screen, variables, data types, errors, user input, conditionals (if, select case), loops (while, do, for), random numbers, arrays (parallel arrays, 2D arrays), booleans, string manipulation, audio, screen coordinates, drawing, subroutines, functions, file I/O, mouse input, and more.

Community

  • QB64 Phoenix Edition Forums.
    • These forums are highly active with a number of folks more than happy to provide assistance to those learning the language.

Tools / Utilities

  • InForm – Visual Basic-esque WYSIWYG UI builder.
  • Deark – Can convert files in a variety of arcane formats to more modern formats. For example, memory dumps using BSAVE to JPG.
    • This is not written in QB64 but is useful for working with older BASIC projects.
  • QB64 Visual Studio Code extension – Haven’t used, but woohoo!

Web

I haven’t used these, but they sound fun…

  • QB-on-a-Stretcher – a RESTful web application framework that takes cues from the project COBOL-on-wheelchair which in turn is inspired by Ruby on Rails.
  • Qub – A QB64 website generator.

Games

Other