.JSE

JSE File

JScript Encoded Script File
Ask a question
QUICK ANSWER

A JSE file is a JScript Encoded Script - a Windows automation script obfuscated by Microsoft's Script Encoder. Windows Script Host (wscript.exe) executes it immediately on double-click. Legitimate JSE files are extremely rare today; if you received one unexpectedly, treat it as malware and do not open it.

Developer: Microsoft Corporation Category: Executable Files MIME: application/x-javascript
OPENS ON Windows
Related: .APK · .EXE · .VBS · .JAR

On this page

19k+ extensions indexed
Last reviewed Jul 27, 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 JSE file format?

Files with a .jse extension store JScript code obfuscated using Microsoft Script Encoder - a tool Microsoft shipped with Windows Script Host 2.0 in 1999. The underlying language is JScript, Microsoft's Windows-specific dialect of JavaScript (ECMAScript), but the source has been run through a proprietary substitution-cipher encoding that conceals the plaintext from casual inspection.

How to run a .jse file

Microsoft Windows includes Windows Script Host (wscript.exe / cscript.exe), which can be used to run scripts in .jse files. Windows Script Host decodes the obfuscation and executes the JScript at runtime. .jse scripts can also be run directly from the command line using cscript myscript.jse.

Is running .jse scripts safe?

Unlike browser JavaScript, JScript scripts running under Windows Script Host have direct access to the file system, Windows registry, network connections, and COM automation objects - there is no sandbox. The Script Encoder obfuscation is trivially reversible and provides zero real protection; multiple open-source decoders exist online. Running unverified or untrusted .jse files is strongly discouraged. Because the encoding helps evade plain-text signature detection, .jse is almost exclusively associated with malware delivery today. Many organizations disable Windows Script Host for standard users or block .jse files at the email gateway entirely. Compare with .VBE - the equivalent encoded VBScript format.

Security & safety

RISK: HIGH

JSE is one of the most common malware delivery formats on Windows. Windows Script Host executes .jse files immediately on double-click with no sandboxing, and the obfuscation is designed to evade signature-based AV. Never open a JSE file received via email, messaging, or downloaded from an untrusted site. If you must inspect one, decode it first (never run the original) and read it in a text editor in a sandboxed VM. Organisations should disable Windows Script Host via Group Policy or registry (HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings\Enabled = 0) and block .jse in email filters. APT32, Kimsuky, FIN6, FIN7, Cobalt Group are documented JSE users.

Format details

in a nutshell
FULL NAMEJScript Encoded Script Fileaka JScript.Encoded file, Windows Script Host encoded script
DEVELOPERMicrosoft Corporationsince 1999 (Microsoft Script Encoder / Windows Script Host 2.0, Windows 98 SE / Windows 2000)
MIME TYPEapplication/x-javascript
TYPEMicrosoft JScript (JavaScript dialect) source code obfuscated with Microsoft Script Encoder
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
23407E5E
ASCII
#@~^
Encoded JScript files begin with the ASCII sequence '#@~^' followed by the encoded script length in a custom base64-like encoding, then the obfuscated script body. The encoding uses a substitution cipher (not encryption - it is reversible without a key). This marker is consistently present at offset 0 in all properly encoded .jse files.

Programs that open JSE files

Windows3 apps
Microsoft Windows Script Host (wscript.exe / cscript.exe) Built-in Windows executes .jse natively on double-click via wscript.exe. WARNING: only run .jse files from trusted, verified sources - this executes the script immediately.
Notepad++ (after decoding) Open-source To INSPECT (not run) a JSE file: first decode it using a Script Encoder decoder (e.g. the Windows Script Decoder on GitHub), then open the decoded .js in Notepad++ to read the source.
Microsoft Visual Studio (script debugging) Freemium Can be used to debug WSH scripts, but the .jse must be decoded first to debug meaningfully.

Technical details

deep spec
Format typeMicrosoft JScript (ECMAScript dialect) obfuscated with Microsoft Script Encoder
Obfuscation methodSubstitution cipher - not encryption; reversible without a key. Multiple open-source decoders exist.
File signatureASCII sequence `#@~^` at offset 0, followed by an encoded script-length field
Text encoding7-bit ASCII with proprietary Script Encoder character substitution applied on top
Execution environmentWindows Script Host (`wscript.exe` / `cscript.exe`) on all Windows versions from XP through 11
Underlying languageJScript - Microsoft's ECMAScript dialect for Windows automation (COM, WScript, FileSystemObject)
Typical file size1 KB - 500 KB (varies with script complexity)
MIME type`application/x-javascript` (also `text/jscript`)
Security riskExtremely high - executes natively on double-click; almost exclusively used for malware delivery in practice
ChecksumEncoded block contains a validation byte; not a cryptographic integrity mechanism
Introduced1999, with Microsoft Script Encoder and Windows Script Host 2.0 (Windows 98 SE / Windows 2000)
OS compatibilityWindows XP through Windows 11 (any Windows version with Windows Script Host)
Related formats`.js` (plain JScript source), `.vbe` (VBScript Encoded equivalent)
Superseded byPlain `.js` with minification/bundling (web); PowerShell `.ps1` scripts (Windows automation)
Released1999 (Microsoft Script Encoder / Windows Script Host 2.0, Windows 98 SE / Windows 2000)
Latest versionN/A - Script Encoder tool discontinued; format still executed by Windows Script Host on all Windows versions
Specificationlearn.microsoft.com

JSE conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with JSE 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 JSE files.

Frequently asked questions

Is a JSE file dangerous?
Extremely likely if received unexpectedly. JSE is the #1 malware delivery format for Windows Script Host - double-clicking immediately executes the script. Treat any unsolicited JSE file as malware. Inspect only in a sandboxed VM after decoding.
How do I read/decode a JSE file without running it?
Use a Windows Script Decoder (e.g. the open-source decoder at github.com/bcse/1834878) to reverse the obfuscation. This produces a readable .js file. Open that in Notepad++ or VS Code to inspect the code. Never run the original file.
What is the difference between .jse and .js?
.js is a plain JavaScript/JScript file (readable text). .jse is the same script after Microsoft Script Encoder obfuscation - unreadable at a glance, but trivially reversible. Both are executed by Windows Script Host (wscript.exe).
What is the difference between .jse and .vbe?
.jse uses JScript (Microsoft's JavaScript); .vbe uses VBScript. Both use the identical Microsoft Script Encoder format ('#@~^' header) and are executed by WSH. Both are high-risk malware vectors.
How do I disable Windows Script Host to prevent JSE execution?
Set the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings\Enabled to 0, or use Group Policy (User/Computer Configuration > Windows Settings > Scripts). After this, double-clicking a .jse shows an error instead of executing it.
Can I convert a JSE file to PowerShell?
Not automatically. Decode the .jse to plain JScript first, then manually rewrite the logic in PowerShell. There is no automatic JSE-to-PS1 converter.

References

1Microsoft - Windows Script Host (wscript.exe) documentationlearn.microsoft.com
2Windows Script Decoder 1.8 - open-source JSE decoder (GitHub)gist.github.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.EXEWindows Executable (Portable Executable)
5.M4AMPEG-4 Audio File
6.MDMarkdown Document
7.DATProgram Data File (generic)
8.JSONJavaScript Object Notation file
9.JPGJPEG Image
10.NOMEDIAAndroid No-Media Marker 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