What Is .bas

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 10, 2026

Quick Answer: .bas is a file extension for BASIC programming language source code, created in 1964 at Dartmouth College by Kemeny and Kurtz. The format became standard across 1980s personal computers like the Commodore 64 (17+ million sold) and Apple II, with .bas files still used in Visual Basic and legacy systems today.

Key Facts

Overview

.bas is a file extension used for BASIC programming language source code files. BASIC, which stands for Beginner's All-purpose Symbolic Instruction Code, was created in 1964 at Dartmouth College by John G. Kemeny and Thomas E. Kurtz as a programming language designed to be accessible to beginners. The .bas extension became the standard format for saving BASIC programs across computers and platforms throughout the latter half of the 20th century.

.bas files are plain text files containing human-readable code that can be executed by a BASIC interpreter or compiler. These files became particularly popular during the 1980s personal computer era when millions of computers, including the Commodore 64, Apple II, BBC Micro, and various others, shipped with BASIC interpreters as the native programming environment. Even today, .bas files remain relevant in legacy systems and modern environments like Microsoft Visual Basic, where the extension is still used for module and form files.

How It Works

.bas files function by containing sequences of BASIC programming commands that are interpreted or compiled into executable instructions. Here's how they operate:

Key Comparisons

File TypeExtensionPrimary UseEra/Platform
BASIC Source Code.basTraditional BASIC programming1964-Present (legacy/niche)
Python Source Code.pyModern general-purpose programming1991-Present (widely used)
C/C++ Source Code.c / .cppSystem programming and applications1972-Present (industry standard)
Visual Basic Module.basVB6 and VBA module files1991-Present (legacy enterprise)
JavaScript Source Code.jsWeb development and scripting1995-Present (dominant web)

Why It Matters

.bas files represent an important milestone in programming language history and accessibility. Consider these key aspects:

While .bas files are no longer the dominant format in professional software development, their impact on programming culture and accessibility cannot be overstated. They represent a foundational chapter in computing history when programming was made accessible to hobbyists and students. Today, .bas files serve as educational tools for understanding programming history and remain necessary for maintaining legacy systems. For anyone interested in retro computing or working with older codebases, understanding .bas files and BASIC programming remains a valuable skill and cultural touchstone in the evolution of computer science.

Sources

  1. BASIC (Programming Language) - WikipediaCC-BY-SA-4.0
  2. Commodore 64 - WikipediaCC-BY-SA-4.0
  3. Visual Basic - WikipediaCC-BY-SA-4.0
  4. Dartmouth College - Birthplace of BASICCC0

Missing an answer?

Suggest a question and we'll generate an answer for it.