BNS File Extension

Portal Script Format
- File Type bns
- Developer Valve
- Popularity
- Application Notepad++
- Category Game Files
- Format Text
What is a BNS file?
The BNS extension is related to Portal Script Format and is classified in the Game Files category, which contains 1265 files.
The Portal Script Format (BNS) was developed by Valve, which created file format and 14 programs to work with them.
BNS files are supported by Linux, Windows and Mac OS. To open a BNS file, you can choose from 5 programs such as Sublime Text, Notepad++ and Atom.
Programs that support BNS files
How to open a BNS file?
If you cannot open a BNS file, it is most often due to missing software. Select a program from the list according to your operating system. Then go to the official website of the program developer, download it, and install it on your device.
Sublime Text, Notepad++ and Atom stand out as the preferred programs to manage BNS files effectively. To install the current version of Notepad++, go directly to the official Notepad++ Team website. The universal package for all operating systems is available there.
After successful installation, your operating system should seamlessly handle BNS files via Notepad++.
Set Notepad++ as the default BNS program
Change Default Program on Mac
- Right click or Control + left click on the desired BNS file;
- Choose "Open in Application" and click "Other";
- Go to the lower section of the window, where you will find the "Enable" menu. By default, it is set to "Recommended Programs";
- Select "All Programs" from this menu and proceed to search for Notepad++. Check the box next to "Always open in app" to set it as the default option.
Set default programs for Windows
- Start by right-clicking on your BNS file, then select the "Open with" option and choose "Choose another app" from the menu that appears;
- In the pop-up window, select the Notepad++ application;
- Check the "Always use this application" checkbox, and then click "OK" to apply the selected application as the default for opening BNS files.
Solve problems with BNS files
BNS files may present some challenges, but most can be easily addressed with minor software tweaks. See the troubleshooting tips below for guidance.
What are the ways to check if my BNS file is damaged?
BNS game files that have become corrupted may display one or more of the following symptoms:
- The file does not respond or shows errors when opening it;
- The file exhibits poor performance during editing operations in PSPad;
- The file stops responding or freezes in Notepad++ or other programs;
- Unexplained BNS file size inflation;
- Actions performed on the file result in the appearance of error notifications;
Why does Notepad++ crash or shut down frequently?
Insufficient updates for Notepad++ Team products can cause Notepad++ to crash. Be sure to regularly install the latest software updates.
Restarting your computer will solve many common problems, which is why it’s the first thing you should do before changing any settings related to the software.
Is there any specific software or utility that can help repair a damaged BNS file?
Use a recovery program to open the damaged BNS file, and in the menu, click "Repair" to start the repair operation. Wait for the recovery process to finish, allowing automatic repair of damaged game files.
How to edit a BNS file?
To make changes to BNS files, you need specialized software that allows both opening and editing the game files. Online BNS editors offer fewer capabilities than applications optimized for Portal Script Format.
Best BNS Editor Software in 2026
With the mentioned criteria in mind, we have assembled a selection of BNS editors.
| BNS Editor Software | Developer | Platforms | Overall Rating |
|---|---|---|---|
| PSPad | Jan Fiala | Windows | 4.7 out of 5 (41 review) |
| Notepad++ | Notepad++ Team | Windows | 4.6 out of 5 (37 reviews) |
| Sublime Text | Sublime HQ Pty | Windows, Mac OS, Linux | 4.6 out of 5 (39 reviews) |
| Atom | - | Windows, Mac OS, Linux | 4.1 out of 5 (36 reviews) |








