Processed on your device
Back to tools
Developer · All tools

XML to JSON

Convert XML elements and attributes to JSON while preserving text values as strings. Free xml to json online, with no installation or account.

Your files and input are processed in this browser. No uploads or accounts.

Tool capabilities

Input
XML
Output
JSON

How to use XML to JSON

Convert XML elements and attributes to JSON while preserving text values as strings. This xml to json works directly in your browser and is free to use without an account.

  1. Paste or open your input in the editor.
  2. Run the tool and inspect the output. If the input is invalid, correct the reported error and run it again.
  3. Copy the result or download it to your device.

XML to JSON · Example

Input

<tools><tool local="true">LocalKit</tool></tools>

Output

{
  "tools": {
    "tool": {
      "#text": "LocalKit",
      "@_local": "true"
    }
  }
}

Usage notes

Inputs and results are processed on this device. Tool content is not sent to a processing server.

XML DTD and entity declarations are disabled. Formatting may change whitespace; XML to JSON keeps tag values as strings and prefixes attributes with @_.

XML input is limited to 1 MiB.

Add or Subtract DaysMove a calendar date forward or backward.AES DecryptAuthenticate and decrypt a LocalKit AES-256-GCM JSON envelope with its password.AES EncryptEncrypt UTF-8 text with AES-256-GCM and a password-derived PBKDF2-SHA-256 key. Every run uses a fresh salt and nonce.Age CalculatorCalculate completed years, months and days between a birth date and a reference date.Anagram CheckerCompare letters and numbers after Unicode normalization, ignoring spacing and case.Angle ConverterConvert angle units with selectable source and target units and precise local results.Apache Config EditorEdit Apache Config source locally with syntax colors, line numbers, find and replace, undo, file import and download. Source is not executed.Archive Contents ViewerBrowse and search file paths inside ZIP, TAR and TGZ archives. Select files to download locally.

Language

Code examples, format names and technical parser messages may use their original notation.