EditSafely

Convert XML to a List

Create a list from XML.

Runs on your device, nothing uploaded

Only elements namedLeave empty for every element. In a sitemap, loc gives just the URLs.
Try:

0 chars · 0 lines

Output

Create a list from XML.

Type or paste above to see the result here.

Example: Extract items from XML

What you paste never leaves this tab

Convert XML to a List is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert XML to a List

  1. 1. Paste your XML. Put the XML document into the input pane, such as a list of elements like <item>apple</item> repeated inside a parent tag.
  2. 2. Check the extracted text. The tool pulls the text content out of each element in order and prints it as a plain list. Type a name in Only elements named, such as loc in a sitemap, to keep just those elements, and turn on Include attributes under More options to list attribute values too.
  3. 3. Copy the plain list. Copy the extracted values, one per line, into a spreadsheet, document, or script wherever plain text is easier to work with than XML.

When to use Convert XML to a List

Convert XML to a List extracts the text content from a set of XML elements and lines them up as a plain, one-item-per-line list. Use Convert XML to a List whenever you have XML data but only need the readable values, not the surrounding markup.

  • Reading values out of a config or feed file. An RSS feed or XML config lists a set of values inside repeated elements and you just want to see the plain values. Paste it in to extract them as a list.
  • Extracting sample data from an XML API response. An older API returns XML instead of JSON and you want to pull the values into a spreadsheet. Paste the response and get a plain list of the extracted text.
  • Pulling values from a legacy export for reuse. A legacy system exported its data as XML and you want the raw values to reuse elsewhere as plain text. Extract them into a list rather than parsing the XML by hand.
  • Quickly checking the contents of test XML. You are debugging an XML parser and want to eyeball the actual element values without reading tags and attributes. Convert the XML to a plain list for a quick check.

Examples

Extract items from XML

Input

<list><item>apple</item><item>banana</item></list>

Output

apple
banana

URLs from a sitemap

Input

<urlset><url><loc>https://example.com/</loc><lastmod>2026-01-01</lastmod></url><url><loc>https://example.com/about</loc><lastmod>2026-02-01</lastmod></url></urlset>

Output

https://example.com/
https://example.com/about

About the Convert XML to a List tool

Convert XML to a List does its work locally, right in the browser. Create a list from XML. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the List Tools collection on EditSafely, a set of 114 small, focused List utilities that share the same instant, private workspace.

You can shape the output with 2 settings, including Only elements named and Include attributes, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is Convert XML to a List free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All List Tools →