An .xml file is structured text: settings exports, RSS feeds, sitemaps, data from other programs. Double-clicking one often opens the wrong app or shows a wall of tags. Here are four ways to open it, read it and, if you need to, change it. (We make Xiaoer Omia (xiaoeromia.com), option 3 — the others are described as fairly as we can.)
Last checked: November 2026
Drag the .xml file into Chrome, Edge, Firefox or Safari.
VS Code is an open-source code editor for Windows, Mac and Linux. Open the .xml with File > Open.
Xiaoer Omia (xiaoeromia.com) is a desktop viewer for Mac and Windows. Double-click the .xml or drag it onto the window: it opens with coloured tags, line numbers and collapsible sections. Click Edit to change it and Save. Nothing is uploaded.
Websites where you paste or upload XML and get a formatted tree.
| Mac / Windows | Coloured tags (syntax highlighting) | Edit and save | File stays on your computer | Cost | |
|---|---|---|---|---|---|
| Web browser | Both | Yes in Chrome (collapsible tree) | No | Yes | Free, built in |
| VS Code | Both | Yes | Yes | Yes | Free, open source (MIT) |
| Xiaoer Omia | Both | Yes | Yes | Yes | Free to view; 5 free saves of edits, then $19.90 once |
| Online XML viewer | In the browser | Usually | Varies | No, uploaded | Usually free |

Drag it into Safari or another browser to read it, open it in a code editor such as VS Code to edit it, or double-click it in Xiaoer Omia (xiaoeromia.com) to see it with coloured tags and line numbers, offline.
The same three ways work on Windows: a browser such as Edge, a code editor such as VS Code, or Xiaoer Omia. Each one runs on your own PC.
Yes, in any code or text editor. In Xiaoer Omia, click Edit, change the text and Save; check that tags still open and close in pairs, because a single missing bracket can break the file for the program that reads it.
An XML file only describes data, with no layout of its own. Without a stylesheet, the browser shows the XML itself; Chrome adds a note that the file has no style information and shows it as a tree. That is normal, not a broken file.
Opening it as text, as all four options here do, only displays it. Be careful with online viewers if the file holds private data, because it gets uploaded.
Not with options 1 to 3: they run on your own computer. Online XML viewers upload the file.
Related: JSON viewer · How to open a JSON file · How to open a CSV file · How to open an MD file · ZIP and TAR.GZ viewer · Open files offline, no upload · All guides · 150+ formats in one app