Merge layered YAML configuration files
Use YAML Merge Tool when one configuration is split across two or more YAML documents or a multi-document stream. It combines the sources into a merged YAML preview, shows conflicts and unsupported constructs for review, and provides an export step.
Start with base.yaml and override.yaml
Provide the YAML sources in YAML Merge Tool when a base configuration and an override need to be combined. The inputs can be separate documents, or several documents held in one YAML stream.
- YAML Merge Tool accepts two or more YAML documents or streams and shows the merged YAML before export.
Input:
base.yaml
override.yaml
Output:
merged YAML preview
Set the merge choices
Choose precedence to decide which source takes priority. Then select the null policy and sequence handling. YAML Merge Tool also lets you choose a deep or shallow merge and set document pairing.
For anchors, aliases, merge keys, and comments, set an explicit policy. These YAML features can affect the result, so include them in the review before exporting.
Review conflicts and unsupported constructs
Review every conflict and unsupported construct before export. Check the merged YAML preview, then adjust the source files or the merge choices when the result does not match the intended configuration.
Merge a document or a multi-document stream
A YAML input can contain one document or multiple documents. YAML Merge Tool handles both forms and includes document pairing among its choices.
Use the pairing choice with precedence and sequence handling when several documents need to be matched during the merge. Review the preview before exporting the merged YAML.
Use config file merging for layered settings
Config file merging fits a setup where a base file is combined with an override file before the merged configuration is exported. The same page can also handle a multi-document YAML stream when the documents need to be paired and checked for conflicts.
Anchors, aliases, merge keys, and comments each have an explicit policy choice. Check that policy and the unsupported-construct review before you export.
When to open Config File Tools
Open the parent Config File Tools category when you need to validate, compare, or convert YAML and TOML, or extract environment variables. Open YAML Merge Tool when the task is to combine two or more YAML documents or streams and inspect the merged preview.
Frequently asked questions
What do config file merge tools do?
Config file merge tools combine configuration documents into a merged result. On this page, YAML Merge Tool handles two or more local YAML documents or multi-document streams and shows a preview before export.
How do I merge YAML files with a base and override?
Open YAML Merge Tool and provide the YAML sources, such as base.yaml and override.yaml. Choose the precedence, null policy, sequence handling, deep or shallow merge, and document pairing for the configuration, then review the conflicts and preview.
Can I merge a multi-document YAML stream?
Yes. YAML Merge Tool accepts multi-document streams as well as individual YAML documents. Document pairing and the other merge choices are available for review before export.
Are config files uploaded when I merge them?
YAML Merge Tool merges config files locally in your browser with no upload.