Native Mac app · Your files never leave your Mac

The private XML viewer & editor for Mac.

Open any XML file and read it as a live structure tree beside highlighted source. Attach an XSD to write valid XML as you type, then format, query, compare, merge, and convert it in one native workspace.

Download for Mac
  • 100% on-device
  • No uploads
  • No account, no analytics
App preview

XML Lens editor on macOS checking a purchase order against its XSD, with three problems underlined and a card offering one-click fixes

Example: the XPath query //book[@category='programming']/title finds 2 matching title elements in a sample book catalog. The document is well-formed and processed on this Mac.

  • Schema-aware editing
  • Editor + Inspector
  • XPath Workbench
  • Compare XML
  • Merge XML
  • Validate with XSD
  • XSLT Studio
  • XML → Markdown
  • XML → JSON
  • Batch Process
  • XSD Viewer
  • Visual Map
  • 100% on-device

One workspace. Every XML job.

Go from raw markup to a clear answer without switching tools—or sending a file to the web.

New in XML Lens 1.9.13

Write XML that's valid as you type.

Attach an XSD and the editor knows your schema. It suggests the elements, attributes, and values allowed at the caret, underlines every problem as you type, explains it in plain English, and fixes it in one click.

  • Schema-aware autocomplete: type < or press Control-Space
  • Live XSD validation with plain-English messages
  • One-click fixes: hover, right-click, or press Option-Return
  • New Document from Schema starts you off valid
Real XML Lens: two problems marked, explained, and fixed from the keyboard.

Visual Map

See any XML document as an interactive map.

Turn dense markup into a clear, explorable hierarchy. Follow parent–child relationships, inspect values and namespaces, and move from any node straight back to its source.

  • Pan, zoom, and fit the full document
  • Collapse branches without losing context
  • Click to inspect. Double-click to reveal in source.
App preview

XML Lens Visual Map on macOS showing a catalog document as connected nodes for books, titles, authors, and prices

Visual Map in XML Lens 1.9.13. Your documents stay on your Mac.

Turn XML into clean Markdown for LLMs and agents.

Convert a full document—or one Visual Map subtree—into readable Markdown on your Mac. Choose Smart, Outline, Table, or Code fence output, then copy the result or save a .md file.

  • Four Markdown styles for different XML structures
  • Estimated output size and token count
  • Fully local conversion with no uploads
App preview

XML Lens for macOS converting an XML book catalog into a Markdown table, with Smart, Outline, Table, and Code fence styles

Convert XML to clean Markdown locally. Nothing is uploaded.

Merge XML files without leaving your Mac.

Combine two to five well-formed documents in a chosen order. Wrap them under a new root, or append children when every file already shares the same root. The merged XML stays on your Mac.

  • Wrap documents under a new root, or combine matching roots
  • Well-formedness checks with line and column diagnostics
  • Copy, save, or open the result in the editor
App preview

XML Lens Merge XML workspace for macOS showing catalog.xml, orders.xml, and stock.xml combining into merged.xml with Wrap selected and a no-uploads privacy badge

Merge XML in XML Lens. Your documents stay on your Mac.

Schemas too

Got an XSD? Open it as a navigable tree.

Open an XML Schema in a dedicated Mac workspace. Browse declarations beside source, map type and reference relationships, load a local folder for imports and includes, then search, format, compile, and save without changing your open XML document.

  • Namespace-aware structure tree and global declarations
  • Visual links for types, references, inheritance, groups, and schema files
  • Local-folder resolution for imports and includes
  • Fully local XSD editing with no uploads
App preview

XML Lens XSD Viewer on macOS showing a purchase order schema as a structure tree with types and required attributes beside its source

Inspect, map, and compile XSD locally without replacing the XML open in the Editor.

Schema-aware editing

Attach an XSD for autocomplete, live validation as you type, plain-English messages, and one-click fixes.

Editor + Inspector

Edit syntax-highlighted XML while the structure tree, breadcrumbs, attributes, and generated XPath stay in sync.

XPath Workbench

Run namespace-aware queries, preview matches, and save the expressions you reach for again and again.

Compare XML

Review editable documents side by side, highlight changes, and export a result the rest of the team can use.

Merge XML

Combine two to five well-formed files locally. Wrap them under a new root, or append children when the roots already match.

Validate with XSD

Check well-formedness and validate against a schema before malformed XML reaches your next environment.

XSLT Studio

Transform XML with a local stylesheet and inspect the result without leaving your workspace.

XML → Markdown

Create clean Markdown with Smart, Outline, Table, or Code fence output, then copy it or save a local .md file.

Batch Process

Apply a workflow to multiple files safely. Originals are never overwritten, so automation stays reversible.

XSD Viewer

Browse and edit schema source, map relationships, resolve local imports and includes, and compile XSD locally.

Themes + Text Zoom

Choose Dark, Light, Ocean, Forest, or Sepia, then adjust editor, tree, and compare text with familiar macOS zoom shortcuts.

Convert with the tradeoffs in view.

Move between XML, JSON, YAML, and CSV locally—but XML does not map perfectly to those formats. Mixed content, namespaces, comments, ordering, and other details may be lost, so XML Lens shows a warning before a potentially lossy conversion.

Read the conversion limits
App preview

XML Lens converting an XML book catalog to JSON in a side-by-side workspace, with a warning about details that may be lost

XML workflows

Start with the job in front of you.

Browse all guides

Try it in your browser

Try it here. Nothing leaves this page.

Paste XML and press Format. This small demo runs entirely in your browser tab with its built-in XML parser: no uploads and no network requests. The XML Lens Mac app does much more, with XPath queries, compare, merge, XSD validation, XSLT, and conversion.

Up to 20,000 characters
Formatted7 elements · max depth 3
<?xml version="1.0" encoding="UTF-8"?><config env="local">  <!-- nothing leaves this page -->  <server host="127.0.0.1" port="8080">    <tls enabled="false"/>  </server>  <features>    <feature name="xpath">on</feature>    <feature name="diff">on</feature>    <feature name="telemetry">off</feature>  </features></config>

Formatting is the simplest thing XML Lens does. On your Mac it adds a live structure tree, XPath, compare, merge, validation, and conversion.

Download for Mac

From raw markup to shipped work.

XML Lens is organized around the job you are doing—not a drawer full of disconnected utilities.

  1. 01

    Open

    Open a file, paste from the clipboard, type directly, or drag XML into the editor.

  2. 02

    Understand

    Inspect structure, navigate nodes, search, run XPath, and validate.

  3. 03

    Transform

    Format, convert, or apply local XSLT 1.0 while keeping loss warnings and remote-resource limits visible.

  4. 04

    Ship

    Copy, export, compare, merge, or batch-process the result with confidence.

Query with confidence.

Run namespace-aware XPath against the current document, see results immediately, and save useful snippets for later.

XPath RunnerXPath 1.0 · Static example
/bookstore/book[@category='programming']/title

✓ Example result: 2 matches in 38 ms

<title>Learning XML</title><title>Swift for macOS</title>

This is a static product example. In the app, run the expression against the open document and inspect live match previews.

Questions before downloading.

Still unsure? Ask us directly.

Is there an XML editor for Mac with XSD autocomplete?

Yes. Attach an XSD in XML Lens and the editor suggests the elements, attributes, and values the schema allows at the caret as you type. Type < for elements, a space inside a tag for attributes, or press Control-Space anywhere. Without a schema, it suggests names already used in the document.

Can XML Lens validate XML against an XSD while I type?

Yes. Once a schema is attached, XML Lens checks the document locally each time you pause, underlines every problem, and explains it in plain English. Hover a problem, right-click it, or press Option-Return for one-click fixes such as adding a required attribute or changing a value to an allowed one.

Can I create a new XML document from an XSD on a Mac?

Yes. Choose New Document from Schema, pick the root element, and XML Lens builds a document with the required elements and attributes in the right order, so it starts out valid against the schema. Choose Everything to include optional parts too.

Can I convert XML to Markdown on a Mac?

Yes. XML Lens converts XML to Markdown locally with Smart, Outline, Table, and Code fence styles. Copy the result, save a .md file, compare estimated token counts, or copy one Visual Map subtree as focused context for an LLM or agent.

What is the easiest way to view and format XML on a Mac?

XML Lens is a native XML viewer and formatter for macOS. It combines syntax highlighting, a synchronized structure tree, search, formatting, minification, XPath, comparison, and merge in one focused app.

Can XML Lens visualize an XML document as a map?

Yes. Visual Map turns an XML document into an interactive node-and-connector hierarchy. You can pan, zoom, collapse branches, inspect nodes, and reveal any element in source while the document stays on your Mac.

Can I view, format, and compile an XSD schema on a Mac?

Yes. XSD Viewer opens a schema in an isolated workspace with a structure tree, global declarations, search, syntax-highlighted source, formatting, minification, and compilation. Visual XSD Map shows type, reference, inheritance, group, and schema-file relationships; load a local schema folder when imports or includes must be resolved. Use Validate separately to check an XML document against an XSD.

Can XML Lens format and minify XML?

Yes. XML Lens can pretty-print XML for reading or review, minify it for compact payloads, strip comments, and apply Compact for API or Readable for review presets.

Can I compare two XML files on macOS?

Yes. XML Lens compares two editable XML documents, highlights additions, removals, and changed lines, and exports the result as Markdown, HTML, or PDF.

Can I merge XML files on a Mac?

Yes. XML Lens merges two to five well-formed XML files locally. Wrap documents under a new root, or combine children when every file already shares the same root. Merge is not a Git-style three-way merge.

Does XML Lens support XPath queries and reusable snippets?

Yes. Run XPath 1.0 expressions, inspect match previews, save useful queries, and pin frequently used XPath snippets for quick reuse.

Does XML Lens upload my XML files?

No. XML content, pasted text, filenames, file paths, XPath expressions, search terms, and exported reports stay on the user’s Mac. XML Lens does not collect product analytics.

What are the conversion limitations?

Conversion between XML and JSON, YAML, or CSV is local but can be lossy. Mixed content, namespaces, comments, ordering, and other XML details may not survive a round trip, so XML Lens shows a warning before potentially lossy conversions.

Does XML Lens support XSLT?

Yes. XSLT Studio runs local XSLT 1.0 transformations. XSLT Studio does not load remote imports, includes, document calls, external entities, or other remote resources.

How does pricing work?

Pro is available as a one-time purchase through the Mac App Store. Apple displays the current price for your storefront.

How can I get help?

Email support@ayushdev.com for product help, purchase or restore questions, bug reports, feedback, accessibility, and privacy requests.

  • 0 uploads

    Parsing, formatting, XPath, compare, merge, and conversion all run on-device.

  • 0 accounts

    Nothing to sign up for or sign in to. Open the app, then open your file.

  • 0 analytics

    No product analytics and no tracking identifiers of any kind.

Private by design

Your XML never leaves your Mac.

No uploads. No accounts. No product analytics. Just local processing, native performance, and your files under your control.

Read our privacy promise
  • Processed on your Mac

    Parsing, formatting, XPath, comparison, merge, and conversion all run on-device in a native macOS app.

  • Nothing phones home

    No file uploads, no product analytics, no accounts, and no tracking identifiers of any kind.

  • Locked-down XSLT

    Remote stylesheet imports, remote document calls, and external entities are never loaded.

Make XML the easy part.

Download XML Lens and get every tool on macOS 14.0 or later.

Download for Mac
  • On-device
  • No account
Requires macOS 14.0 or later · Listed as XML Editor Lens: XPath on the Mac App Store
App preview

XML Lens batch processing workspace