Upload a PHP array file and download it as Android strings.xml. Translation keys, plurals and placeholders are preserved. Free, no account needed.
Pick the source format or let the converter detect it from the file.
Used when the source format holds one language per file. Also used as the source language for XLIFF output.
Choose the format you want to download.
Android keeps translations in res/values-xx/strings.xml resource files with string, string-array and plurals elements. Placeholders use the Java format syntax such as %1$s.
Need it the other way round? Convert Android XML to PHP.
A PHP file that returns an associative array of translations. Laravel, CakePHP and many custom PHP apps load language files in this form.
Used by: Laravel, CakePHP, PHP. One language per file. Read the PHP format guide.
<?php
return [
"HELLO_WORLD" => "Hello world!",
"MY_TRANSLATION_KEY" => "This is my translation message!"
];
?>Android keeps translations in res/values-xx/strings.xml resource files with string, string-array and plurals elements. Placeholders use the Java format syntax such as %1$s.
Used by: Android, Jetpack Compose, Kotlin Multiplatform. One language per file. Read the Android XML format guide.
<resources>
<string name="hello_world">Witaj Świecie!</string>
<string name="welcome"><![CDATA[Witaj <b>%s</b>!]]></string>
<plurals name="numberOfSongsAvailable">
<item quantity="one">Znaleziono %d piosenkę.</item>
<item quantity="few">Znaleziono %d piosenki.</item>
<item quantity="other">Znaleziono %d piosenek.</item>
</plurals>
<string-array name="planets_array">
<item>Merkury</item>
<item>Venus</item>
<item>Ziemia</item>
<item>Mars</item>
</string-array>
</resources>de.json or messages_pt-BR.properties.If you need the Android XML file in more languages, the fastest route is a free SimpleLocalize project: import the PHP file, add languages, run auto-translation with DeepL, Google Translate, OpenAI, Claude or Gemini, and download the result as Android XML. The CLI does the same from CI with upload and download commands, so the conversion becomes part of your build. See also translating PHP files.
Yes. There is no signup and no limit on the number of conversions beyond a few requests per second.
No. The file is parsed in memory, converted and returned in the same request. Nothing is written to disk or a database.
Plural forms are normalized to ICU message syntax and written back in the native form of Android XML. Placeholders are kept, and Apple and Android specific syntax is translated between platforms. Read more in the pluralization guide.