# JSON to XML

> Convert JSON with explicit root and array element rules.

[Open tool](https://www.toolcabana.com/cs/json-to-xml) · [Zvuk, video a soubory](https://www.toolcabana.com/cs/category/audio-video-and-files)

Tool ID: json-to-xml. Requested language: cs. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

JSON to XML converts a JSON value into an XML document with a UTF-8 declaration and a root element you name, with root as the default. Object keys become element names, array entries become item elements, null values become empty elements, and text is escaped. Keys must be valid simple XML names, and nesting is limited to 100 levels.

## Supported tasks (en)

Convert JSON with explicit root and array element rules.

## Steps (en)

1. Paste the source into the input editor, or load the built-in example.
2. Set root element.
3. Run json to xml, review the output, then use the available copy or download controls.

## Settings

- Root element (en; key: root; type: text)

## Limitations (en)

Media input is bounded to 50 MB per file and 100 MB combined. WebAssembly conversions have a 180-second limit and may require substantial browser memory.

## Example input

```text
{"name":"ToolCabana","items":[1,2]}
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### How are JSON arrays converted to XML?

Each array is wrapped in an element named after its key, and every entry inside becomes an item element. For example, "items":[1,2] becomes an items element containing two item elements with the values 1 and 2.

### Why does JSON to XML say my keys are invalid?

XML element names must start with a letter or underscore and may contain only letters, digits, underscores, periods and hyphens. JSON keys with spaces, symbols or a leading digit trigger this error, so rename them first.

### Can I change the root element name in the XML?

Yes. Enter a name in the Root element setting; the default is root. The name must follow the same rules as other element names, starting with a letter or underscore.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Media input is bounded to 50 MB per file and 100 MB combined. WebAssembly conversions have a 180-second limit and may require substantial browser memory.

## Related tools

- [Excel to CSV](https://www.toolcabana.com/cs/excel-to-csv)
- [CSV to Excel](https://www.toolcabana.com/cs/csv-to-excel)
- [Speech to text](https://www.toolcabana.com/cs/speech-to-text)
