How to convert json to android xml resource files
- Step 1Structure the JSON as flat key-value pairs — Each top-level key becomes a <string name="key"> element. For string arrays, use a JSON array value — the tool produces a proper <string-array name="key"> block with <item> children.
- Step 2Select Android strings.xml output mode — Choose 'Android XML' in the output format dropdown to wrap the output in <resources> and generate correctly escaped string elements. Nested objects flatten with underscore separators to match Android naming conventions.
- Step 3Download as strings.xml — Save the file as strings.xml and place it in app/src/main/res/values/. For localization, save translated versions in values-fr/, values-de/, etc.
- Step 4Validate in Android Studio — Open the file in Android Studio. Lint flags invalid characters and duplicate name attributes. Run Find Usages on any renamed keys to verify existing R.string references still resolve.
Frequently asked questions
How do I handle Android plural strings (quantity strings)?+
Android plurals require a <plurals> element with <item quantity="one"> and <item quantity="other"> children. Format these manually in the output file, or structure the JSON as a nested object with one/other keys before converting — the converter maps nested objects to parent-child XML elements.
What happens to nested JSON objects in the output?+
Nested objects flatten with underscore separators by default — { "button": { "ok": "OK", "cancel": "Cancel" } } becomes <string name="button_ok">OK</string> and <string name="button_cancel">Cancel</string>. This matches the standard Android resource naming convention used by most design token systems.
Is the app copy or configuration uploaded anywhere?+
No. The converter runs entirely in your browser. Proprietary UI copy, internal configuration values, and any unreleased string content are never sent to JAD Apps servers.
Privacy first
Conversion runs locally in your browser. No file is uploaded — only metadata counters are saved for signed-in dashboard stats.