Convert YAML to JavaScript Object

Use this YAML to JavaScript Object converter tool by pasting or uploading YAML in the left box below. Results will appear in the box on the right.

Input (YAML) - Paste your YAML here

Output (JavaScript Object) - The converted JavaScript Object

Converter Options
JS indent spacing
Number of spaces to use for indenting the JS output
Tab indent
Use tabs instead of spaces to indent JS

Want to convert JavaScript Object to YAML instead? Use the JavaScript Object to YAML Converter Tool.

Need an example of what YAML looks like? Get example YAML.

How to use YAML to JavaScript Object Conversion Tool

  1. Paste your YAML input into the left input box and it will automatically convert it into JavaScript Object.
  2. The JavaScript Object output is the box to the right.
  3. If there are any errors in the YAML and the converter isn't able to do the conversion, the error message will appear in the output box letting you know where the error was found in the YAML.
  4. Use the control box to select options that will affect the conversion.
  5. Your YAML data is secure. ConvertSimple's converter does not send your YAML data to our servers for conversion, the process is done completely in your web browser. That's what makes ConvertSimple's converter the safest and fastest converter out there.

YAML Format

Full form name YAML Ain't Markup Language
File extension .yaml
Type of format Configuration Language
MIME type application/x-yaml, text/yaml, text/x-yaml

JavaScript Format

Name JavaScript
Full form name JavaScript
File extension .js
Type of format Programming Language
MIME type text/javascript, application/javascript

Related Tools