Android strings.xml and Apple .strings checker
Paste or open a strings file to see each string that may break the build or show the wrong text, with its line number. Add the default-language file too, and it also lists missing keys and format arguments that differ between the two.
1. The file to check
2. Optional: the default-language file, to compare
Everything runs in this page. Files are read by your browser and nothing you paste or open is sent anywhere or stored. It flags common problems; it can't guarantee your file will build or import cleanly. Test before you ship.
Escape one string
Type the text as it should appear in the app, and copy the line for your file.
The escaper treats the text as plain text: a < becomes <. If you use styling tags such as <b>, add them after escaping.
What it checks
| Check | Android strings.xml | Apple .strings |
|---|---|---|
| Apostrophe | error unless written \' or inside double quotes | allowed as is |
| Double quote | warning unless written \" (a bare one is not shown) | error unless written \" (it ends the string early) |
Leading @ or ? | error unless written \@, \? or a real reference such as @string/name | allowed as is |
Bare & or < | error: write & or < | allowed as is |
| Line break typed in the file | warning: it becomes a space; write \n | kept |
| Duplicate key | error | warning |
Missing =, ; or closing quote | not applicable | error, with the line |
| Format arguments | several unnumbered arguments (%s %d) get a warning; with a default file, any argument that differs between the two is an error | |
The rules, from the source
- Android: "Beware that you must escape apostrophes and quotation marks." The escaped forms are
\@,\?,\n,\t,\uXXXX,\'(or the whole string in double quotes) and\", and "Whitespace collapsing and Android escaping happen after your resource file gets parsed as XML", so the XML rules for&and<come first. Source: String resources, Android Developers, checked 12 November 2026. - Apple: "some characters must be prefixed with a backslash before you can include them in the string. These characters include double quotation marks, the backslash character itself, and special control characters such as linefeed (\n) and carriage returns (\r)." The same page says "Within a single strings file, each key must be unique" and recommends saving strings files as UTF-8. Source: String Resources, Apple Documentation Archive (an archived page, last updated 21 March 2016), checked 12 November 2026.
More on the Android cases translators hit most: apostrophes, quotes, @ and ? in strings.xml.
Keep the strings in a sheet
i18n String Catalog is a Google Sheets add-on that keeps one row per key and one column per language, and exports Android strings.xml with these characters escaped for you. It also checks placeholders that differ from the source text, and imports and exports JSON, Flutter ARB and Apple String Catalogs (.xcstrings).