🌐
GitHub
github.com › google › yamlfmt
GitHub - google/yamlfmt: An extensible command line tool or library to format yaml files. · GitHub
An extensible command line tool or library to format yaml files. - google/yamlfmt
Starred by 1.7K users
Forked by 64 users
Languages   Go
🌐
JSON Formatter
jsonformatter.org › yaml-formatter
Best YAML Formatter Online: Advance YAML Formatter
Best and Secure Online YAML Formatter works well in Windows, Mac, Linux, Chrome, Firefox, Safari and Edge.
🌐
GitHub
lyz-code.github.io › yamlfix
yamlfix
A simple opinionated yaml formatter that keeps your comments!
🌐
Simon Willison
til.simonwillison.net › yaml › yamlfmt
Auto-formatting YAML files with yamlfmt | Simon Willison’s TILs
July 13, 2023 - ~/go/bin/yamlfmt \ -formatter indentless_arrays=true,retain_line_breaks=true \ -lint \ -quiet \ .github/workflows/*.yml
🌐
Reddit
reddit.com › r/commandline › yaml formatter recommendation
r/commandline on Reddit: YAML formatter recommendation
December 3, 2021 -

Been looking for a while and the best I could find is prettier but it doesn't do everything right, for example some things require a

`key: >` but prettier does `key:`. Google not too helpful :(

🌐
YAMLlint
yamllint.com
YAMLlint - The YAML Validator
Paste in your YAML and click "Go" - we'll tell you if it's valid or not, and give you a nice clean UTF-8 version of it.
🌐
Homebrew
formulae.brew.sh › formula › yamlfmt
yamlfmt — Homebrew Formulae
brew install yamlfmt · Extensible command-line tool to format YAML files · https://github.com/google/yamlfmt · License: Apache-2.0 · Development: Pull requests · Formula JSON API: /api/formula/yamlfmt.json · Formula code: yamlfmt.rb on ...
🌐
Online YAML Tools
onlineyamltools.com › prettify-yaml
Prettify YAML - Online YAML Tools
This YAML prettifier rewrites ugly YAML (Yet Another Markup Language) files to beautiful YAML files. It can uncompress compressed YAML and expand inline YAML syntax.
🌐
PyPI
pypi.org › project › yamlfmt
yamlfmt
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
Find elsewhere
🌐
Xkyle
xkyle.com › A-Detailed-Comparison-of-YAML-Formatters
A Detailed Comparison of YAML Formatters | xkyle.com
November 29, 2022 - Google yamlfmt produced some of them most opinionated outputs, but is also the most configurable. It has the potential to be the formatter I want, I think it just needs a special kyle formatter instead of the basic one :). Still, the fact that it removes horizontal whitespace seems weird to me (Defaults with retain_line_breaks: false).
🌐
yq
mikefarah.gitbook.io › yq › usage › output-format
Output format | yq - GitBook
December 5, 2022 - Flags to control yaml and json output format
🌐
Code Beautify
codebeautify.org › yaml-beautifier
YAML Beautifier Online
YAML Formatter helps to format unformatted or ugly YAML data and helps to save and share YAML.
🌐
JSON Formatter
jsonformatter.org › yaml-formatter › 570a2d
YAML Formatter
Best and Secure Online YAML Formatter works well in Windows, Mac, Linux, Chrome, Firefox, Safari and Edge.
🌐
Package Control
packagecontrol.io › packages › Pretty YAML
Pretty YAML - Packages - Package Control
Prettify YAML plugin for Sublime Text 2 & 3 (Based on Pretty JSON) Install this sublime text package via Package Control · Linux: ctrl+alt+y · Windows: ctrl+alt+y · OS X: cmd+ctrl+y · If selection is empty and configuration entry use_entire_file_if_no_selection is true, tries to prettify whole file.
🌐
GitHub
github.com › google › yamlfmt › blob › main › docs › command-usage.md
yamlfmt/docs/command-usage.md at main · google/yamlfmt
An extensible command line tool or library to format yaml files. - google/yamlfmt
Author   google
🌐
GitHub
github.com › mikefarah › yq
GitHub - mikefarah/yq: yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor · GitHub
Flox can be used to install yq on Linux, MacOS, and Windows through WSL. flox install yq · Using gah · gah install yq · Detailed documentation with many examples · Written in portable go, so you can download a lovely dependency free binary · Uses similar syntax as jq but works with YAML, INI, JSON and XML files · Fully supports multi document yaml files · Supports yaml front matter blocks (e.g. jekyll/assemble) Colorized yaml output · Date/Time manipulation and formatting with TZ ·
Starred by 15.1K users
Forked by 754 users
Languages   Go 90.7% | Shell 8.9%
🌐
GitHub
github.com › adrienverge › yamllint
GitHub - adrienverge/yamllint: A linter for YAML files. · GitHub
# Lint one or more files yamllint my_file.yml my_other_file.yaml ...
Starred by 3.4K users
Forked by 307 users
Languages   Python
🌐
Faun
faun.pub › cli-tools-for-validating-and-linting-yaml-files-5627b66849b1
CLI tools for validating and linting YAML files. Ideal for pipelines and CI/CD. | by Pritesh Tailor | Medium | FAUN.dev() 🐾
February 25, 2022 - yq is a great tool for validation as well as auto-configuring the format of your YAML file such as setting the indentation size. It can be installed by popular linux package managers. Press enter or click to view image in full size · yq in action formatting a YAML file to have an indentation of 2 spaces.
🌐
Elmah.io
elmah.io › tools › yaml-formatter
YAML Formatter - Free formatter and validator for YAML files
Validate and format YAML files is easy using this free tool. Re-order lines, adjust the indentation, and even save the result as JSON.