I use XML Editor from XMLmind for editing/viewing XML file in Mac.

It's not bad, but I expect an XML editor for Mac. What options do I have including the commercial/free software?

  • Are you just editing XML specific to the Mac (like 'plist' and 'sdef') or are you editing a variety of schemas? Commented Feb 15, 2011 at 20:04
  • @Philip : I wanted a general solution to parse the XML files.
    – prosseek
    Commented Feb 15, 2011 at 21:18
  • Obligatory: vim is good enough for me! Commented Sep 25, 2012 at 23:14

15 Answers 15


OS X Software for Editing XML

  • 11
    Of the many mentioned here, which is your recommendation? Which is better featured? Which is more Mac-like in behaviour?
    – Vihung
    Commented Jun 28, 2012 at 11:06
  • Please repair the link to EditX that now is not free. Linked is an old version for PowerPC
    – hectorpal
    Commented Jan 21, 2016 at 2:20
  • ONE colud also use the new Visual Studio Code Editor (my favorite Editor by now) or Atom or MacVIM or Xcode,Netbeans,Eclipse,IntellijIDEA (basically any Programming IDE does also Support XML Syntax Highlighting and most of the also have Code Completition) if you need also DTD/XSD Validation the you need to take a closer look
    – konqui
    Commented Aug 11, 2016 at 18:55
  • oXygen. Worth every dollar. Commented Mar 13, 2017 at 18:50
  • 1
    URL of XMLMate is dead.
    – Hauke
    Commented Mar 5, 2019 at 10:36

Eclipse works on Mac OS and it is one of the best XML editor around, actually. It has XSD validation, autocompletion towards this schema. Also, it offers a graphical XSD designer.

  • 1
    Just to add: Ctrl/⌘ + Shift + F will format the XML.
    – arun
    Commented Apr 7, 2017 at 18:38

Although it's still a beta I have found Xmplify to be a pretty useful XML aware tool. Copes with DTD, XSD, XPath and XSL transformation in the tool

  • 6
    Out of beta now, $59. Commented Apr 30, 2013 at 4:52

IntelliJ IDEA is overall a good IDE, it's available on Mac, and it supports editing XML in ways such as syntax highlighting, collapsing a given scope, and validating XML. I haven't used it much for XML, but I've had good experiences with that IDE for other purposes so thought I would mention it here.

  • Allows folding/collapsing elements to more-easily view the structure and change the order. Commented Mar 30, 2020 at 16:36

And of course Emacs with psgml-mode or nxml-mode will edit XML.

  • Welcome to Ask Different. We like answers to be more than just a single line. Ideally, you want to explain why your answer is *right." It also helps to provide links, citations, and/or screen shots. Please review our help section How to Answer on writing good answers to questions
    – Allan
    Commented Aug 11, 2016 at 14:36

Testing this and that, I settled down with Text Wrangler, with XML Tidy script. It's free and pretty useful for my purposes.

  • 1
    XML Tidy does indentation ... and I believe it checks well-formedness. Apparently xmllint, which the XML Tidy script uses, can validate. Can you validate XML using XML Tidy within Text Wrangler?
    – LarsH
    Commented May 16, 2016 at 15:57

I found a simple and free software to view, no editor: XML Spy

  • Welcome to Ask Different! We're trying to find the best answers and those answers will provide info as to why they're the best. Explain why you think the software you recommended is better than others out there. See How to Answer on how to provide a quality answer. - From Review
    – fsb
    Commented Dec 12, 2017 at 17:48
  • 1
    @fsb thanks, my suggestion is based that is program is free and simple, fit well for me :) Commented Dec 12, 2017 at 21:58
  • That's good but it doesn't tell us anything about the software, why you like it, how it will fit the needs of the OP, etc. We prefer answers to be more than just 1 line. See How to Answer for tips.
    – fsb
    Commented Dec 12, 2017 at 22:11
  • 1
    @fsb the top-rated answer here just rattles off a list of software, with not "tell[ing] us anything about the software, why you like it, how it will fit the needs of the OP, etc." It's not fair to hold Jonas to a different standard than those who have been here a long time.
    – Brie
    Commented May 30, 2020 at 16:08
  • @Conrad I’m holding Jonas to the same standard according to the help center. Site users can downvote answers that don’t follow the site rules, regardless of how long the author has been here. I was trying to help Jonas improve his answers. You question really belongs on the Ask Different Meta site and you’re free to address it there.
    – fsb
    Commented May 31, 2020 at 1:50

If you have the Apple Developer Tools installed, then you have Xcode and this includes the "Property List Editor" application (Apple plist files are in XML format, hence the name).

You can find the application here:

/Developer/Applications/Utilities/Property List Editor.app
  • 6
    I don't think the Property List Editor can deal with generic XML files, it's intended to edit a specific .plist format.
    – ghoppe
    Commented Feb 16, 2011 at 20:11
  • 1
    ^ This is true (what ghoppe said). And even now that it's integrated into Xcode, no longer standalone, you just get the raw color coded code with line numbers. No disclosure triangles, etc. like a .plist file gives you. Commented May 8, 2013 at 22:37
  • Well, Xcode complaint on an XML not being in the right format. So... it's not exactly generic.
    – hectorpal
    Commented Jan 21, 2016 at 2:18


You can download the source code from GitHub and compile it locally. Then in the preferences install the appropriate language bundle. https://github.com/textmate/textmate

If you like the application I would recommend buying the commercial version to show your support to the author.


As an alternative to XMLmind XML Editor there's QXmlEdit It is also free and quite feature rich. It's written in Qt and runs on Mac as well as the other platforms Qt supports.


I always believe that an open source is the best and simple solutions. You can try BlueFish, or Brackets, I strongly advise you to try it, you won't lose anything.


I'm looking for the same thing, and I just came across XMLmind XML Editor. I like how it can load my files pretty quickly.

@rds: I've tried using Eclipse to open my XML files, but it would hang with my files (>15MB). I've come to notice any editor built with Java hangs upon trying to open my file, or at least takes an unbearably long time to load it.

  • The OP already mentioned XMLmind.
    – guwac
    Commented Nov 14, 2012 at 14:53
  • Also, XMLmind is Java, so shouldn't it hang as well, @jde?
    – hd1
    Commented May 13, 2014 at 0:27

I like the look of http://www.sublimetext.com/2 as seen in a Daniel Shiffman tutorial


Another option is Microsoft VS Code with an XML extension...

I'm using: https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml

You can Cmd+Shift+P and type "XML" to find the utils provided by the extension.

Some keyboard shortcuts are provided, e.g. Ctrl+Shift+Alt+B to format nicely.

Or find elements by XPath query, or display the XPath of the highlighted element.


You can try all in one JSON viewer or all in one XML viewer.

enter image description here

  • Other than the links being swapped (The JSON link goes to the XML viewer and the XML link goes to the JSON viewer), why has this been downvoted? I have used both of these to beautify code for publication many times.
    – August
    Commented Mar 29, 2023 at 22:45
  • I guess even though the question asks for a viewer/editor, reading the question they really want an editor. Commented Jun 29, 2023 at 20:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .