OPML to JSON Converter
Paste OPML feed data and instantly convert it to structured JSON with outlines, feed URLs, and folder hierarchy
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
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.
<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>
{
"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.
<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>
{
"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.
<outline text="Tech News">
<outline text="Ars Technica"
xmlUrl="https://feeds.arstechnica.com/..."/>
<outline text="Hacker News"
xmlUrl="https://news.ycombinator.com/rss"/>
</outline>
{
"body": [
{
"text": "Tech News"
},
{
"text": "Ars Technica",
"xmlUrl": "https://feeds.arstechnica.com/..."
},
{
"text": "Hacker News",
"xmlUrl": "https://news.ycombinator.com/rss"
}
]
}
Who Uses This
Migrating RSS reader backends from XML-based configs to JSON APIs.
Auditing a feed collection — JSON is easier to search and filter than raw OPML.
Extracting feed URLs and folder counts from OPML exports for reporting.
Converting podcast directory OPML files to JSON for custom dashboards or analytics scripts.
Common Mistakes
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.
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.
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
- Processing: 100% client-side — uses browser DOMParser API
- Browser Support: Chrome, Firefox, Safari, Edge
- Max File Size: No hard limit (constrained only by available RAM)
- Output Format: Standard JSON with configurable 2-space or 4-space indentation
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.