.VBE

VBE File

VBScript Encoded Script File
Ask a question
QUICK ANSWER

A VBE file is a VBScript whose source code was scrambled by Microsoft's Script Encoder to hide it. Double-clicking one runs it immediately via Windows Script Host -- it does not show the code. To inspect one safely, decode it back to readable VBScript first with a Script Decoder, then open the result in a text editor. Treat any unexpected VBE file as hostile.

Developer: Microsoft Category: Executable Files MIME: text/vbscript; application/x-vbe
OPENS ON Windows macOS Linux
Related: .APK · .EXE · .VBS · .JAR

On this page

19k+ extensions indexed
Last reviewed Aug 26, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the VBE file format?

.vbe files are closely related to VBScript - a scripting language based on Microsoft's Visual Basic. A .vbe file is a script file written in VBScript that has been passed through Microsoft's Script Encoder (screnc.exe). The file stores the script's source code in encoded form so that it cannot be directly read or edited; the encoding is a reversible obfuscation rather than true encryption. .vbe files are executed by Windows Script Host (wscript.exe or cscript.exe) and are only supported on Windows operating systems.

Encoded .vbe files are identifiable by the distinctive delimiters #@~^ (opening) and ^#~@ (closing) that wrap the obfuscated payload along with a length checksum - there is no binary magic number.

.vbs is the plain-text equivalent used in the Visual Basic Script environment. The main difference between those two formats lies in encoding - a .vbe file is encoded, whereas a .vbs is not. The same Script Encoder tool also produces .jse files, the encoded counterpart for JScript. Both encoded formats can be embedded inside a .wsf Windows Script File.

.vbe files are commonly used by malicious actors as a means of distributing malware via email, since the encoding obscures the payload from casual inspection. Opening unknown attachments containing a .vbe file should be handled with the utmost caution. More advanced users may decode and inspect the source code using a community decoder script - such as a Decode.vbs utility - before executing anything.

Security & safety

RISK: HIGH

.vbe is a classic Windows malware-obfuscation format. Like .vbs, double-clicking a .vbe RUNS it immediately with your privileges via Windows Script Host - it can delete files, edit the registry, download payloads or spread itself, and the encoding deliberately hides what it does. The "encoding" is trivially reversible, so it protects nothing and is mainly used to evade simple scanners and casual inspection. Rules: never run a .vbe that arrived by email, chat or download unless you wrote it or fully trust it; to inspect one, DECODE it to VBScript and read it as text - never double-click; be suspicious of double extensions like 'invoice.pdf.vbe'. Because of this history and VBScript's deprecation, many environments block .vbe outright. An unexpected .vbe should be treated as hostile and deleted.

Format details

in a nutshell
FULL NAMEVBScript Encoded Script File
DEVELOPERMicrosoftsince Late 1990s - produced by Microsoft Script Encoder (screnc.exe), alongside VBScript/WSH
MIME TYPEtext/vbscript; application/x-vbe
TYPEEncoded (obfuscated) VBScript source - run by Windows Script Host

Programs that open VBE files

Windows3 apps
Script decoder + Notepad/Notepad++/VS Code Free To READ a .vbe safely, DECODE it first (e.g. a public Script Decoder), then open the recovered .vbs in Notepad/Notepad++/VS Code. Never double-click the .vbe to inspect it - that runs it.
Visual Studio Code Free Open the decoded VBScript with syntax highlighting to understand what the script does before deciding anything.
Windows Script Host (wscript / cscript) Built-in To RUN a trusted encoded script: double-click (wscript) or 'cscript script.vbe' - WSH decodes and executes it. Only for code you fully trust; it runs with your privileges. On Windows 11 24H2 the optional VBScript feature must be present.
macOS1 app
Any text editor (after decoding) Free macOS cannot RUN VBScript (no Windows Script Host). You can only decode and read the source - open the decoded text in TextEdit or VS Code.
Linux1 app
Any text editor (after decoding) Free Linux has no VBScript runtime; only decode-and-read is possible. Open the decoded source in VS Code/gedit.

Technical details

deep spec
DeveloperMicrosoft
Format typeEncoded (obfuscated) VBScript source file
Encoding methodProprietary character-substitution obfuscation with an embedded checksum; not true encryption - fully reversible
File structure markersEncoded payload wrapped between `#@~^` (open) and `^#~@` (close) delimiters with an embedded length/checksum field
Runtime engineWindows Script Host - executed by `wscript.exe` (GUI) or `cscript.exe` (console)
Encoder toolMicrosoft Script Encoder (`screnc.exe`), a free command-line utility
MIME type`text/vbscript` / `application/x-vbe`
Platform supportWindows only; WSH is a built-in Windows component
Default file associationRegistered to execute via WSH on double-click in Windows Explorer
Security riskHigh - encoding hides payload from casual inspection; widely exploited in email-based malware delivery
DecodingFully decodable back to plain `.vbs` using publicly available community decoder scripts
Script language versionVBScript 5.x - same language engine as plain `.vbs` files
Character encodingASCII/ANSI text; the obfuscated block uses only printable ASCII characters
Plain-text equivalent`.vbs` (unencoded VBScript); encoded JScript counterpart is `.jse`
ReleasedLate 1990s - produced by Microsoft Script Encoder (screnc.exe), alongside VBScript/WSH
Specificationlearn.microsoft.com

VBE conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with VBE files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about VBE files.

Frequently asked questions

What is a .vbe file?
It's a VBScript that has been run through Microsoft's Script Encoder to scramble (obfuscate) its source. It still runs like a normal .vbs via the Windows Script Host, which decodes it at runtime. The encoding is weak and easily reversed, so it hides code from casual viewing only.
How do I open a .vbe file to see what's inside?
Decode it back to VBScript with a Script Decoder, then open the recovered .vbs in a text editor (Notepad/Notepad++/VS Code). Do NOT double-click the .vbe to inspect it - double-clicking RUNS the script rather than showing it.
Is a .vbe file safe?
Treat it as dangerous unless you trust the source. Double-clicking runs it with your permissions, and the encoding is specifically used by malware to hide intent and dodge scanners. Decode and read it before ever considering running it; delete unexpected ones.
What's the difference between .vbs and .vbe?
.vbs is readable VBScript source; .vbe is the same script after Microsoft's Script Encoder obfuscated it. Both run identically under Windows Script Host. The .vbe encoding is reversible (not encryption), so it offers no real protection.
How do I decode a .vbe file?
Use a public VBScript/Script Decoder (the Script Encoder is reversible), or run it through the documented decoding routine, to recover the original VBScript. Then read it in a text editor. This is the safe way to analyze a suspicious .vbe.
Why won't my .vbe run on Windows 11?
Microsoft deprecated VBScript. In Windows 11 24H2 it's an optional 'Feature on Demand' (enabled by default for now), is scheduled to stop being enabled by default around 2027, and will later be removed. Check Settings > Optional features, and plan to migrate to PowerShell.

References

1Microsoft - Windows Script Host overviewlearn.microsoft.com
2Microsoft - Script Encoder / scripting articles (archived)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.RPMSGRestricted Permission Message
8.NOMEDIAAndroid No-Media Marker File
9.MDMarkdown Document
10.TXTPlain Text File

Related extensions

.APKAndroid Package
.EXEWindows Executable (Portable Executable)
.VBSVBScript file (Visual Basic Script)
.JARJava Archive
.EX4MetaTrader 4 Compiled Program (Expert Advisor / Indicator / Script)
.APPXMicrosoft Windows App Package (AppX)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z