Omia

How to open an XML file

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

1. A web browser

Drag the .xml file into Chrome, Edge, Firefox or Safari.

2. A code editor such as VS Code

VS Code is an open-source code editor for Windows, Mac and Linux. Open the .xml with File > Open.

3. An offline viewer: Xiaoer Omia

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.

4. An online XML viewer

Websites where you paste or upload XML and get a formatted tree.

Side by side

Mac / WindowsColoured tags (syntax highlighting)Edit and saveFile stays on your computerCost
Web browserBothYes in Chrome (collapsible tree)NoYesFree, built in
VS CodeBothYesYesYesFree, open source (MIT)
Xiaoer OmiaBothYesYesYesFree to view; 5 free saves of edits, then $19.90 once
Online XML viewerIn the browserUsuallyVariesNo, uploadedUsually free
An XML feed open in Xiaoer Omia on a Mac, with coloured tags, line numbers and collapse arrows
Option 3: Pavilion-feed.xml in Xiaoer Omia on a Mac, with coloured tags and line numbers
Try Omia · Apple Silicon Mac · IntelWindows More about the JSON and code viewer

FAQ

How do I open an XML file on a Mac?

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.

How do I open an XML file on Windows?

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.

Can I edit an XML file?

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.

Why does my browser show only tags?

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.

Is it safe to open an XML 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.

Are my files 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