Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

OPML to JSON Converter

Paste OPML feed data and instantly convert it to structured JSON with outlines, feed URLs, and folder hierarchy

Your files never leave your browser
OPML Input0 chars, 0 lines
JSON Output0 chars, 0 lines
Ready·

Paste any OPML export — RSS subscriptions, podcast lists, bookmark outlines — and get structured JSON back in one click. Folder hierarchies map to nested objects, feed URLs become proper key-value pairs, and every attribute stays intact. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste OPML
→
Parse XML Tree
→
Output JSON

Your browser’s built-in DOMParser reads the OPML XML, walks through every <outline> element, and collects its attributes into a JSON object. Nested outlines (folders containing feeds) become children arrays. The “Flatten” toggle strips that nesting and gives you a single flat list — handy when folder structure doesn’t matter.

Examples

Simple podcast subscription list

Exported from a podcast app — two shows, no folders.

INPUT
<opml version="2.0"> <head><title>Podcasts</title></head> <body> <outline text="99% Invisible" type="rss" xmlUrl="https://feeds.simplecast.com/BqbsxVfO"/> <outline text="Radiolab" type="rss" xmlUrl="https://feeds.wnyc.org/radiolab"/> </body> </opml>
OUTPUT
{ "head": { "title": "Podcasts" }, "body": [ { "text": "99% Invisible", "type": "rss", "xmlUrl": "https://feeds.simplecast.com/BqbsxVfO" }, { "text": "Radiolab", "type": "rss", "xmlUrl": "https://feeds.wnyc.org/radiolab" } ] }

RSS feeds organized in folders

A Feedly export with feeds grouped into categories. The folder hierarchy maps to nested children arrays.

INPUT
<opml version="1.0"> <body> <outline text="Tech News"> <outline text="Ars Technica" type="rss" xmlUrl="https://feeds.arstechnica.com/arstechnica/index"/> <outline text="Hacker News" type="rss" xmlUrl="https://news.ycombinator.com/rss"/> </outline> <outline text="Design"> <outline text="Smashing Magazine" type="rss" xmlUrl="https://www.smashingmagazine.com/feed"/> </outline> </body> </opml>
OUTPUT
{ "body": [ { "text": "Tech News", "children": [ { "text": "Ars Technica", "type": "rss", "xmlUrl": "https://feeds.arstechnica.com/..." }, { "text": "Hacker News", "type": "rss", "xmlUrl": "https://news.ycombinator.com/rss" } ] }, { "text": "Design", "children": [ { "text": "Smashing Magazine", "type": "rss", "xmlUrl": "https://www.smashingmagazine.com/feed" } ] } ] }

Flattened output for a migration script

Same folder structure, but with “Flatten” turned on. All feeds land in one array — no nesting.

INPUT
<outline text="Tech News"> <outline text="Ars Technica" xmlUrl="https://feeds.arstechnica.com/..."/> <outline text="Hacker News" xmlUrl="https://news.ycombinator.com/rss"/> </outline>
OUTPUT
{ "body": [ { "text": "Tech News" }, { "text": "Ars Technica", "xmlUrl": "https://feeds.arstechnica.com/..." }, { "text": "Hacker News", "xmlUrl": "https://news.ycombinator.com/rss" } ] }

Who Uses This

👨‍💻 Developers

Migrating RSS reader backends from XML-based configs to JSON APIs.

📡 Content Curators

Auditing a feed collection — JSON is easier to search and filter than raw OPML.

📊 Data Analysts

Extracting feed URLs and folder counts from OPML exports for reporting.

🎙️ Podcasters

Converting podcast directory OPML files to JSON for custom dashboards or analytics scripts.

Common Mistakes

Pasting a URL instead of the actual OPML content

The tool expects raw XML text, not a link to a file. Open your .opml file in a text editor first, copy everything, then paste it here.

Missing the <opml> root tag

Some apps export partial XML without the wrapping <opml> and <body> tags. The parser needs those to work. Wrap your outlines in <opml><body>...</body></opml> if they’re missing.

Expecting the head section without checking “Include Head”

Head metadata (title, date, owner) only appears in the JSON output if you toggle the “Include Head” option on. It is off by default because many scripts only need the feed list.

Technical Details

Frequently Asked Questions

What is an OPML file?

OPML stands for Outline Processor Markup Language. It’s an XML-based format mainly used for exchanging lists of RSS feeds, podcast subscriptions, and bookmarks between apps. If you’ve ever exported your subscriptions from Feedly, Inoreader, or a podcast app, you got an OPML file.

How do I open an OPML file to copy the contents?

Right-click the .opml file, choose “Open with,” and pick any plain text editor — Notepad on Windows, TextEdit on Mac (set to plain text mode), or VS Code. Select all the text, copy it, and paste it into the input box here.

Does this keep the folder structure from my feed reader?

Yes, by default. Folders become objects with a children array containing their feeds. If you don’t need the hierarchy — say, you just want a flat list of every feed URL — toggle on “Flatten” before converting.

Can I convert JSON back to OPML?

Not with this specific tool. This is a one-way OPML-to-JSON converter. For the reverse direction, you’d need to write a short script or find a dedicated JSON-to-OPML converter. The JSON output here preserves all the original attributes, so round-tripping is straightforward if you build one.

Is my subscription data private when I use this?

Completely. The conversion happens in your browser using JavaScript — nothing gets sent to a server. You can disconnect from the internet and the tool still works. Your feed list stays on your machine.

Share: