Pikkola YAML Studio, tool No. 31

Four config formats. One text box.

Paste a YAML file, a JSON response, a TOML config or an .env line and read it back as any of the other three. The parser runs on this page, so nothing is uploaded. When something is wrong, the error names the line, the column and the character it stumbled on.

4
formats
6
directions
0
uploads
what you paste
# compose.yaml
services:
  web:
    image: nginx:1.27
    ports:
      - "8080:80"
    environment:
      TZ: Asia/Seoul
      DEBUG: false
what you copy
{
  "services": {
    "web": {
      "image": "nginx:1.27",
      "ports": ["8080:80"],
      "environment": {
        "TZ": "Asia/Seoul",
        "DEBUG": false
      }
    }
  }
}

The studio

Paste once, read it four ways

One editor on the left, one answer on the right. Change the source format or the target format and the same text is read again.

Input
Examples
Type or paste a document and the checks run as you type.
Output

            

There is no output yet. Paste something on the left, or load one of the examples.

Validation

    Nothing leaves the tab

    No request, no account, no storage. The text and the converted result live in this page until you close it.

    How the four formats meet

    Each format has its own parser and its own writer. Between them sits one small data model, which is why nesting and types survive a trip from YAML to TOML.

    01

    Parsers, not regular expressions

    Indentation, quotes, flow collections, block scalars, anchors, tables and dotted keys are read properly, not matched line by line. A quoted colon stays inside the string where it belongs.

    02

    An error points at a character

    Line and column come from the parser position, so a tab used for indentation or a quote left open is marked where it starts, not where the file ends.

    03

    Your file stays here

    No request, no account, no storage. The text lives in this tab and is gone when you close it. Load the page once and it works with the network off.

    What the validator looks for

    The parser reports what stops it and what will surprise you later. Every finding names a line and a column, and the line in the editor is marked when you click it.

    Syntax first, structure second. Nothing is checked against a schema or a Compose version.

    • YAML
      A tab in the indentationYAML allows tabs inside a value but not in the indent. The column of the first tab is reported.
    • YAML
      Indentation that does not line upA child block must start deeper than its parent, and sibling keys must start at one column.
    • YAML
      A quote left openSingle and double quotes close on the same line, unless the value is a block scalar.
    • JSON
      A comma that JSON forbidsTrailing commas, single quotes, comments and bare keys are rejected, with the position of the offending character.
    • TOML
      A table defined twiceA [table] header may appear once. [[array]] may repeat. A key cannot later become a table.
    • .env
      A line without a valueEvery line is KEY=VALUE, with an optional export prefix. An unquoted value ends at a space before #.

    Questions

    Is my file sent anywhere?

    No. There is no endpoint to send it to. The four parsers and the four writers are JavaScript files on this domain, and the Content-Security-Policy allows no script or connection beyond them. Load the page once and it keeps working with the network off.

    What happens to my comments?

    They are read and then dropped when the target format is JSON, which has no comment syntax. YAML, TOML and .env comments are also dropped, because the converter rebuilds the document from values rather than editing the text.

    Can any document become .env?

    Almost. .env is a flat list of KEY=VALUE lines, so an object is flattened and the path is joined with an underscore and uppercased: database.host becomes DATABASE_HOST. An array of simple values is joined with commas, and an array of objects becomes one JSON string. The output panel names both cases when they happen.

    What happens to null in TOML?

    TOML has no null, so a null value is left out and a warning names the key. Inside an array it becomes an empty string, because dropping it would move the other items.

    Does it check my Compose file or my wrangler config?

    It checks syntax and the structure of each format. It does not know which keys Docker Compose or Wrangler expect, so a clean result means the file is well formed, not that the service will accept it.

    Which YAML features are supported?

    Block and flow style, quoted keys, single and double quoted strings, literal and folded block scalars, anchors and aliases, comments and a single document. Merge keys (<<) and custom tags are not interpreted. A file with two documents is reported rather than merged.