Text List to Android string-array XML

Paste one item per line and get a ready-to-use Android resource block.

Runs entirely in your browser. Nothing you enter is sent or stored.

How to use

  1. Enter the array name used in R.array.
  2. Paste your list, one item per line.
  3. Copy the XML or download it as arrays.xml.
  4. Put it under res/values/ in your Android project.

Frequently asked questions

Are apostrophes and quotes escaped?

Yes. Characters such as ' " & < > and a leading @ or ? are escaped so aapt compiles the resource without errors.

Which lines are skipped?

Empty lines and lines starting with "[source" are skipped, and every line is trimmed.

Can I make an integer-array?

Yes. Choose integer-array in the type menu.

Related tools