Skip to content

JSON, YAML, XML and TOML Converter

Convert data between JSON, YAML, XML and TOML in any direction. Paste text or add files; nothing is uploaded.

Drop files here or click to choose Files never leave your device
    Options

    How to use JSON, YAML, XML and TOML Converter

    1. Paste your data in the box, or add JSON, YAML, XML or TOML files.
    2. Choose the format to convert to and the indentation.
    3. Press Start.
    4. Copy the result or download the converted files.

    How JSON, YAML, XML and TOML Converter works

    Automatic input detection

    The input format is read from the file extension (.json, .yaml/.yml, .xml, .toml). For pasted text, the first character decides: { or [ means JSON, < means XML, sections like [server] with key = value lines mean TOML, and anything else is read as YAML.

    How XML is mapped

    XML elements become keys, repeated elements become lists, and attributes become keys starting with @_ (for example @_id). Numbers and true/false are recognised as such. When converting back to XML, data with a single top-level key becomes the root element; otherwise everything is wrapped in a <root> element.

    TOML rules

    TOML files must have a table at the top level. If your data is a list or a single value, it is placed under a key named items so it can be written as TOML.

    Libraries used

    Parsing and writing use js-yaml, fast-xml-parser and smol-toml, three widely used open-source libraries, running in your browser.

    Comparison

    This site (in-browser)Typical upload-based sites
    Your filesNever leave your deviceSent to a remote server
    Waiting timeNo upload, no download queueUpload + processing + download
    LimitsNoneOften file-size or daily limits
    Works offlineYes, once loadedNo

    Tips for the best result

    • Use YAML for human-edited configuration, JSON for APIs and JavaScript, TOML for simple settings files.
    • Check comments: YAML and TOML comments are not kept, because JSON has no comments.
    • Convert several files at once; each gets its own output.
    • If a file fails, the error shows the line or the reason from the parser.
    • For tables of records, JSON to CSV gives a spreadsheet instead.

    Private by design

    JSON, YAML, XML and TOML Converter runs entirely inside your browser, in background threads (Web Workers) that use your device's own processor. Your files are never uploaded to our servers, so nobody else can see them, and processing starts instantly with no upload or download wait. Once the page has loaded, the tool keeps working even without an internet connection.

    Related tools

    Frequently asked questions

    Are YAML comments kept?

    No. Comments are not part of the data, so they are lost when converting between formats.

    What happens to XML attributes?

    They become keys starting with @_, and are turned back into attributes when converting to XML.

    Why did my XML get a <root> element?

    XML needs exactly one top-level element. If your data has several top-level keys or is a list, they are wrapped in <root>.

    Are numbers kept as numbers?

    Yes. Values like 8080 or 3.5 and true/false are kept as numbers and booleans, while quoted values stay text.

    Can I convert several files at once?

    Yes, add them all; each file is converted separately.

    Is the order of keys kept?

    Yes, keys keep the order in which they appear in your input.

    Is my data uploaded?

    No. Files and pasted text are processed by JavaScript in your browser and never sent to FileToolsPlus or any server, so you can use it for private configuration files, API keys or customer data.

    Does it work offline?

    Once the page has loaded, the conversion itself needs no internet connection.