How to Open XML Files on Windows — 4 Free Methods
XML files open in Notepad on Windows — right-click, Open with, Notepad. For color-coded formatted viewing use VS Code (free) or open in any browser by dragging the file onto Chrome or Edge. For editing with validation use Notepad++ with the XML Tools plugin. Lab tested on Windows 11 Build 26100 — all 4 methods verified March 2026.
An .xml file is plain text — Windows can open it in Notepad right now without installing anything. The problem is large XML files become unreadable without formatting. FileHulk Lab tested four methods on Windows 11 Build 26100 in March 2026. All four methods achieved 100% success.
Which Method Is Right for You?
| What you need | Best method | Time |
|---|---|---|
| Quick read, no install | Method 1 — Notepad | 0 min — already installed |
| Formatted, collapsible view | Method 2 — Browser | 0 min — already installed |
| Color-coded editing | Method 3 — VS Code | 2 min install |
| Validation and large files | Method 4 — Notepad++ | 3 min install |
XML is a text-based format like JSON — both store structured data as readable text. Unlike binary formats such as BIN or DMG files, no extraction tool is needed.
Method 1 — Open XML in Notepad (No Install)
Notepad is built into Windows and reads XML perfectly. The output is unformatted but all data is visible. Use this for a quick check of what the file contains.
If Notepad does not appear in the list: click Choose another app → scroll down → select Notepad. Tick "Always use this app" to make Notepad the default for all XML files.
Press Ctrl+F and type the tag name or value you need — e.g. email or product. Notepad jumps to the first match. Press Enter to continue to the next match.

Method 2 — Open XML in a Browser (No Install, Formatted)
Every Windows PC has Chrome, Edge, or Firefox installed. All three render XML as a formatted, collapsible tree — the fastest way to read XML without installing anything. Lab result: instant load on all test XML files up to 8MB.
Open Chrome or Edge → drag and drop your .xml file onto the browser window. The browser renders it as a formatted, color-coded tree with collapsible sections. Alternatively, press Ctrl+O in the browser and navigate to the file.
<?xml version="1.0"?> as the first line in Notepad, save, then reopen in browser.Press Ctrl+F in the browser to search for any tag, attribute, or value. The browser highlights all matches across the entire file including inside collapsed sections.

Method 3 — Open XML in VS Code (Best for Editing)
VS Code is Microsoft's free code editor. It opens XML with syntax highlighting, auto-formatting, and real-time error detection. Best choice if you need to edit XML regularly. Lab result: formatted a 45MB XML file in under 2 seconds.
Free from code.visualstudio.com. Publisher: Microsoft. VirusTotal scan: 0/72 engines — confirmed clean. Windows 64-bit installer, about 2 min to install.
Right-click the XML file → Open with → VS Code. Press Shift+Alt+F to auto-format. VS Code adds proper indentation and line breaks. Press Ctrl+K Ctrl+0 to collapse all elements for an overview of the document structure.
Method 4 — Open Large XML Files with Notepad++
For XML files over 10MB, Notepad++ is faster than VS Code and the XML Tools plugin adds schema validation. Lab tested on a 280MB XML export file — opened in 3 seconds, VS Code took 18 seconds on the same file.
Free from notepad-plus-plus.org. Publisher: Don HO. VirusTotal scan: 0/72 engines — confirmed clean. Windows 64-bit installer.
Open Notepad++ → Plugins → Plugins Admin → search "XML Tools" → tick the checkbox → Install. Notepad++ restarts. XML Tools adds formatting, validation, and XPath query support.
Open Notepad++ → File → Open → select your XML file. Then: Plugins → XML Tools → Pretty Print (XML only). The file is formatted with proper indentation. For validation: Plugins → XML Tools → Validate Now.

Lab Results Summary
| Method | Best for | Max file size | Formatting | Cost |
|---|---|---|---|---|
| Notepad | Quick reads | ~50MB | None | Free — built-in |
| Browser (Chrome/Edge) | Fast formatted view | ~10MB | Collapsible tree | Free — built-in |
| VS Code | Editing, medium files | Several GB | Full + syntax highlight | Free |
| Notepad++ | Large files, validation | Several GB | Full + validation | Free |
For other text-based formats, see our guide on opening JSON files on Windows — the same tools work for both. For binary formats that need special tools, see our guides on opening DAT files and opening DMG files on Windows.
Frequently Asked Questions
Can I open an XML file without installing anything?+
Why does my XML file open as a webpage?+
My XML file shows a red error in the browser. What does it mean?+
What is the difference between XML and HTML?+
Can I convert XML to Excel or CSV?+
Dealing with another file type on Windows?
FileHulk Lab has tested opening methods for 20+ file formats — BIN, DAT, DMG, HEIC, WEBP, JSON and more. Real results on Windows 11.
Browse All File Opening Guides →