Skip to content

SQL to YAML Converter

Turn SQL INSERT statements into YAML records, for fixtures and seed files.

Runs in your browserSQL → YAML
Loading tool…

Example

Input
INSERT INTO users (id, name, admin) VALUES
  (1, 'Ada', TRUE),
  (2, 'O''Brien', NULL);
Output
- id: 1
  name: Ada
  admin: true
- id: 2
  name: O'Brien
  admin: null

How to use the SQL to YAML Converter

  1. Paste or type your SQL into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. Review the YAML result, then copy it or download it as a file.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.

Browse all sql converters →