Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>XYJson - XML YAML JSON ConverterNew to Visual Studio Code? Get it now.
XYJson - XML YAML JSON Converter

XYJson - XML YAML JSON Converter

Ryo Hasegawa

|
11 installs
| (0) | Free
Convert and format XML, YAML, and JSON directly in VS Code. Supports minify and pretty formatting.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

XYJson - XML YAML JSON Converter

Convert XML ⇄ YAML ⇄ JSON directly inside VS Code.

  • Convert between formats with one command
  • Pretty format or minify output
  • Works from Command Palette and right-click menu
  • Automatic input format detection

Features

  • Conversion commands:
    • Convert to JSON - Transform XML or YAML content to JSON
    • Convert to XML - Transform JSON or YAML content to XML
    • Convert to YAML - Transform JSON or XML content to YAML
  • Available from:
    • Command Palette
    • Editor right-click context menu
  • Automatic input format detection:
    • Content starting with { or [ is parsed as JSON
    • Content starting with < is parsed as XML
    • All other content is parsed as YAML
  • Entire document is replaced with the converted output
  • Output formatting is configurable (pretty / minified)

Usage

  1. Open an XML, JSON, or YAML file
  2. Right-click in the editor to open the context menu
  3. Select one of the conversion commands:
    • Convert to JSON
    • Convert to XML
    • Convert to YAML

The file content will be replaced with the converted result.

Settings

Setting Type Default Description
xyjson.minify boolean false Whether to minify output instead of pretty formatting.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft