.bas BASIC program

Text & source code

MIME typetext/x-basic
DescriptionBASIC program
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .bas file?

A .bas file is a “BASIC program” (MIME type text/x-basic).

How do I open a .bas file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .bas file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.bas shows the guessed type.

Which format is .bas based on?

Technically a .bas file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .bas?

The MIME type is text/x-basic. In the Apache web server: AddType text/x-basic .bas; in nginx: types { text/x-basic bas; }.

Nearby entries