TokenPad
Format

Agent Config JSON to YAML

Convert an agent or tool definition into readable YAML.

Your input

110 characters1 lines0 tokensor drop a file

Agent Config to YAMLExact
0Token change
Token change0no change
Input tokens0what you pasted
Output tokens0what you would send
Token cost of this result
Output tokens0
As input$0.00
× 100K requests$0.00

Everything on this page runs in your browser. Nothing you paste is transmitted, because there is no server here to transmit it to.

Result
 

Why agent config lives in YAML

Agent definitions, skill frontmatter and MCP server configuration are almost always YAML on disk, while the same structures arrive as JSON from APIs, documentation examples and generators.

YAML wins on disk because configuration is edited by people and reviewed in diffs, where comments matter and quoting noise does not help. JSON wins on the wire because it is unambiguous.

What gets quoted, and why it matters

YAML has a long list of values that change meaning if unquoted. A version like 1.10 becomes a float and loses its trailing zero. The word no becomes false in some parsers. A string beginning with a colon or a dash breaks parsing entirely.

The converter quotes anything ambiguous rather than producing the shortest possible output. Prompt text in particular is quoted aggressively, because it commonly contains colons and quotation marks.

System prompts inside config

A long system prompt embedded in a config file is where this most often goes wrong: it contains colons, quotes and line breaks, all of which are YAML-significant. If the prompt is long, keeping it in a separate file and referencing it usually beats embedding it, for both diffs and correctness.

Frequently asked questions

Why is my version number quoted in the output?
Because unquoted it would parse as a number. 1.10 becomes 1.1, and 1.2.3 fails outright. Quoting is the correct behaviour, not clutter.
Does this support comments?
Comments cannot survive a conversion from JSON, which has no notion of them. Add them after converting, in the file where they belong.

More format tools