Code · Made a little simpler
YAML Comment Remover
Remove inline and full-line YAML comments locally. Keep literal hash signs, quoted values and block scalar content, then download the checked YAML.
Telling YAML comments apart from literal text
Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
YAML Comment Remover: how to use it
- Paste YAML or select a UTF-8 file. Choose Remove comments.
- Inspect the number of comments removed and the resulting YAML preview.
- Copy the output or save without-comments.yaml.
Limits and notes
UTF-8 files up to 4 MiB or pasted text up to 4,194,304 UTF-16 code units. The input must parse as a supported YAML 1.2 core stream. The result is parsed again and compared with the original document structure. A change to a scalar value prevents export.
How your privacy works →YAML Comment Remover: common questions
Will a hexadecimal color value lose its hash?
A quoted value such as "#336699" keeps its hash. A hash that starts a YAML comment is removed.
What happens to a file containing only comments?
Removing all comments can produce an empty file. The tool still makes that output available to download.