Opening a BAS File

The BAS file type is primarily associated with Visual Studio.

BASFile Extension BAS
File extension: BAS
File type:  source code

What is a BAS file?

BAS files mostly belong to Visual Studio by Microsoft. A BAS file contains source code (usually a class module) written in BASIC (Beginner's All-purpose Symbolic Instruction Code) programming language. Visual Studio integrated development environment may be used to create a BAS script. Source code written in BASIC is stored as plain text data. However, some programs use their own flavor of BASIC which may store BAS files as tokenized binary data.

How do you open BAS files?

You need a suitable software like Visual Studio to open a BAS file. Without proper software you will receive a Windows message "How do you want to open this file?" or "Windows cannot open this file" or a similar Mac/iPhone/Android alert. If you cannot open your BAS file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application. You can also display a BAS file directly in the browser:. Just drag the file onto this browser window and drop it.

Online BAS Text Viewer

Choose your .bas file to view

Read our privacy guarantee in Filext’s terms and privacy policy

Please allow ads on our site

This helps us keep our servers running. Then re-upload your file to view it.

Click here to see how to disable the ad blocker for filext.com

How to extract texts from BAS files or capture a screenshot to PDF, JPG, DOCX, TXT, ...

If you want to extract texts from BAS file or capture a screenshot, you can use our free Online BAS File Viewer:
  1. Just click the "Choose your .bas file to view" button on this page.
  2. After your file is opened in browser,
  3. click "Save as..." in the menu.
  4. Then choose the file format (e.g. JPG, PDF, DOCX, TXT, ...) you want.
  5. Your file will be converted and downloaded.

Programs that open and convert BAS files:

  1. Visual Studio by Microsoft
    See the previous paragraphs to learn more about the main application. BAS files are often referred to as Visual Studio developers because this type of file is primarily created or used by this software.
  2. CHDK (script) by CHDK
    CHDK is a program used to enhance the firmware features of Canon digital cameras. A UBASIC script used by CHDK is saved in a BAS file. This file format is classified as Developer. Related links: CHDK Wiki
  3. e.Report Designer (report generation data) by Open Text
    e.Report Designer is a report design program. It can access multiple data sources and generate reports from simple or complex datasets. The ROD file created by e.Report Designer and its library modules are compiled into a BAS file used for subsequent report generation operations. This file format is classified as Developer.
  4. HBasic (source code) by HBasic Developer
    HBasic is an integrated development environment for developing applications in BASIC programming language. BASIC source code created with HBasic is saved in a BAS file. This file format is classified as Developer.
  5. QuickBASIC (tokenized code) by Microsoft
    QuickBASIC is a discontinued integrated development environment featuring a compiler, BASIC programming language features, and a debugger. It saves BASIC source code in a BAS file. This file format is classified as Developer.
  6. VB Decompiler (decompiled code) by DotFix
    VB Decompiler is a Windows-compatible program for decompiling programs written in BASIC language. It uses a BAS file to store decompiled code. This file format is classified as Developer.
  7. Visual Basic (source code) by Microsoft
    Visual Basic was an integrated development environment for DOS operating system. It uses a BAS file to store a script written in BASIC. This file format is classified as Developer.

BAS format details:

A file format defines how the data in the file is structured. A file format is determined by the file extension and signature, so JPEG images have the extension .jpg and the first bytes in the file are ÿØÿ. Nonetheless, different programs can utilize the same file extension to represent distinct file formats. Double-clicking on the file often results in an error when opening. So you need a detailed analysis of a file to find out the format and the associated program. Our evaluation of the BAS files is as follows:

BAS is one of the most common file extensions and is used by a few programs, each with its own file format. The file formats most commonly found in BAS files are:

All other BAS files (64%) have no consistent format, such as Microsoft QuickBASIC 4, Visual Basic 3 source, GW-BASIC protected source, QuickBASIC Extended v7, MSX BASIC tokenized source, BAS VBDOS Pro 1, TRS-80 Level II BASIC tokenized source, UTF-8, CLS, REM, Sub, Option, DECLARE and PRINT. They are often associated with convert, program, input, game, document, object, square, loops, space, using, area, base, date or film. You can get all the details of your BAS file by dragging it onto this page or by clicking the button "Choose your .bas file to view" above.

Technical Data for BAS File Extension

File classification:
Developer
Related files:

The following listing is compiled from the database produced by the 'Associate This!' program, selected data from the main FILExt database and file extension information submitted by users.

ProgramID: VisualBasic.Module, FileType: Visual Basic Module, AppName: Visual Basic
EXEFile: vb6.exe

ProgramID: Quincy.Document
EXEFile: C:\DOWNLO~1\CINTER~1\Quincy\Quincy\Quincy__\Quincy.exe /dde

ProgramID: VisualBasic.Module
EXEFile: %ProgramFiles%\Microsoft Visual Studio\VB98\vb6.exe %1

ProgramID: VisualBasic.Module
EXEFile: F:\VisStudio\VB98\vb6.exe %1

ProgramID: VisualBasic.Module
EXEFile: %ProgramFiles%\VB98\vb6.exe %1

ProgramID: SmallBASIC
EXEFile: %ProgramFiles%\SBW32\FLTK_0.9.6.1\sbfltk.exe -e %1

ProgramID: VisualBasic.Module
EXEFile: %ProgramFiles%\DevStudio\VB\vb5.exe %1

ProgramID: ActuateSource
EXEFile: D:\Actuate6\ErdPro\BIN\erdpro.exe %1

ProgramID: ActuateSource
EXEFile: %ProgramFiles%\Actuate6\ErdPro\BIN\erdpro.exe %1

ProgramID: ScriptDocument
EXEFile: %ProgramFiles%\Dxp.exe

ProgramID: VisualBasic.Module
EXEFile: %ProgramFiles%\VB6\VB98\vb6.exe


a bas source code is a special file format by Microsoft and should only be edited and saved with the appropriate software.

How to solve problems with BAS files

  • Associate the BAS file extension with the correct application.
  • Update your software that should actually open source codes. Because only the current version supports the latest BAS file format. Search, therefore, e.g. on the Microsoft manufacturer website after an available Visual Studio update.
  • To make sure that your BAS file is not corrupted or virus-infected, get the file again and scan it with Google's virustotal.com.
  • Click here to open your .BAS file online - secure, fast, and no downloads needed.
Drop here
View another file
BAS file viewer BAS file description