Convert Android XML Resource Files to JSON

Overview

Migrating an Android app to React Native or importing localization strings into a translation tool requires converting Android's strings.xml to JSON. The converter maps each string element to a key-value pair in JSON, preserving the string name as the key.

How to Use This Tool

Paste your Android strings.xml file. Click Convert to JSON. Each <string name='key'>value</string> becomes a JSON key-value pair. Download the JSON for use in your React Native i18n configuration or translation platform.

Ready to get started? It's free, no registration required, and your files never leave your device.

PDF Tool

Frequently Asked Questions

How does strings.xml convert to JSON format?

Each <string name='app_name'>My App</string> becomes {app_name: 'My App'} in JSON. String arrays (<string-array>) become JSON arrays. Plural strings (<plurals>) become JSON objects with quantity keys.

Can I convert JSON back to Android strings.xml?

Yes. Paste a flat JSON object and select XML output. The converter generates strings.xml-compatible XML with each key-value pair wrapped in <string name='key'>value</string> tags.

Does the converter handle HTML entities in string values?

Yes. Android string resources can contain HTML entities like &amp; and &#160;. The converter decodes them into their character equivalents in the JSON output.