Excel and Word VBA Macro Viewer and Safety Scan

Open an Office file to extract every VBA module, read it with syntax highlighting, and see findings for auto-open macros, shell commands, downloads, obfuscation and IP addresses.

Läuft in Ihrem Browser. Ihre Dateien verlassen nie Ihr Gerät. So prüfen Sie es

…

So geht's

  1. 1
    Open the file

    Choose a macro-enabled Office file.

  2. 2
    Read the findings

    Check AutoExec, Suspicious, Obfuscation and IOC items.

  3. 3
    Inspect the code

    Jump to highlighted lines in each module.

  4. 4
    Decide

    Report, delete or trust the file.

  5. 5
    Export

    Download the report or the module source.

Über dieses Tool

Macro-enabled Office documents remain a common way to deliver malware: an invoice or CV arrives by email, and enabling macros runs code that downloads something worse. They are also everyday business tools, and before running a colleague's or a supplier's macro you may simply want to know what it does. Opening the file in Office is exactly the risk you want to avoid. This viewer reads the macros without running anything. It unpacks modern files (.xlsm, .xltm, .xlam, .docm, .dotm, .pptm), finds the embedded vbaProject.bin, and parses it as an OLE compound file following Microsoft's published MS-CFB specification; legacy .xls, .doc and .ppt files are compound files already. It then reads the VBA project's dir stream and decompresses each module with the MS-OVBA algorithm, giving you the original source code of every standard module, class module and document module (ThisWorkbook, Sheet1, ThisDocument). The code is shown with line numbers and syntax highlighting and can be downloaded as .bas or .cls files. A scan in the style of the open-source olevba tool lists indicators: procedures that run automatically when the document opens, calls that run commands (Shell, WScript.Shell, PowerShell), download files (URLDownloadToFile, XMLHTTP), write or delete files, call Windows APIs directly, hide strings with Chr() chains or Base64, plus URLs, IP addresses and executable file names.

Who it is for

IT and security staff triaging suspicious attachments, accountants and analysts reviewing workbooks before enabling macros, developers recovering VBA source, and teachers explaining macro risks.

What the findings mean

| Kind | Examples | Meaning | |---|---|---| | AutoExec | Workbook_Open, AutoOpen, Document_Open | Runs as soon as macros are enabled | | Suspicious | Shell, CreateObject, PowerShell, URLDownloadToFile, Kill | Can run programs, download, or change files | | Obfuscation | Long Chr() chains, StrReverse, Base64 | Code that hides what it does | | IOC | URLs, IP addresses, .exe names | Indicators to block or investigate |

An auto-run trigger combined with downloads, shell commands or obfuscation is a strong warning sign.

What this does not do

It does not run or emulate the code, does not check reputation databases, and does not inspect Excel 4.0 (XLM) macro sheets, embedded OLE objects, DDE fields or remote templates, which attackers also use. A clean result is not a guarantee that a file is safe, and this is not a replacement for antivirus or professional incident response.

Safe handling

Do not enable editing or macros for unexpected attachments. If the scan shows high-risk indicators, report the email to your IT team and delete it. For files you trust, read the code before enabling macros.

Worked example

A file called invoice.xlsm contains a Workbook_Open procedure that creates WScript.Shell and runs PowerShell to fetch a URL ending in .exe. The scan lists AutoExec, three Suspicious calls and three IOCs and rates the indicators High.

Privacy

The file is unpacked in your browser and never uploaded.

Rechenbeispiel

invoice.xlsm: Workbook_Open + WScript.Shell + PowerShell download → High.

Kurzinfos

Häufig gestellte Fragen

How can I see macros without opening Excel?

Open the file here; the VBA code is extracted and shown as text without running.

Which files are supported?

.xlsm, .xltm, .xlam, .docm, .dotm, .pptm and legacy .xls, .doc and .ppt.

Can this tell me a file is malware?

It shows risk indicators; it is not antivirus and cannot guarantee a file is safe.

What is an AutoExec macro?

A procedure that runs automatically when the document opens and macros are enabled.

Can I recover my VBA code?

Yes, download each module as a .bas or .cls file.

Is the file uploaded?

No, it is processed in your browser.

Völlig kostenlosKeine Kosten, keine Anmeldung
Dateien bleiben privatAlles läuft in Ihrem Browser
Einfach in Ihrer SpracheIn vielen Sprachen verfügbar