YAML'ı JSON'a ve JSON'u tekrar YAML'a dönüştürün, her iki yönde. Dönüştürürken doğrular ve net hatalar gösterir. Her şey tarayıcınızda çalışır.
YAML ⇄ JSON nasıl kullanılır
Yönü seçin: YAML'dan JSON'a veya JSON'dan YAML'a.
YAML veya JSON'unuzu girdi paneline yapıştırın.
Dönüştürülen sonucu kopyalayın veya girdi geçersizse hatayı okuyun.
This converter transforms YAML into JSON and JSON into YAML, in both directions. Pick the direction, paste your input, and copy the converted result or read a clear error if the input is malformed.
Everything is processed locally in your browser, so your data stays on your device.
YAML and JSON describe the same kind of data, but with different priorities. JSON is strict and compact, which suits APIs and machines; YAML is indentation-based and easier for people to read and edit, which is why it dominates configuration files.
Each conversion parses the source first, so malformed input is caught and reported with the reason and often the line, instead of silently producing a broken result. A successful conversion therefore also tells you the input was valid.
It uses the YAML 1.2 and 1.1 compatible parser from js-yaml, covering the features you meet in practice: mappings, sequences, scalars, anchors and multi-line strings.
This is exactly the glue you need around CI pipelines, Kubernetes and Docker Compose files, and APIs that speak JSON while your config is written in YAML. It lets you move between the two without hand-editing.
One thing to know: YAML comments are dropped, because JSON has no concept of comments, and converting back generates fresh YAML without them.
Sıkça sorulan sorular
js-yaml'dan YAML 1.2 / 1.1 uyumlu ayrıştırıcıyı kullanır, yaygın özellikleri kapsar: eşlemeler, diziler, skalerler, çapalar ve çok satırlı dizeler.
Girdi dönüştürmeden önce ayrıştırılır, bu yüzden geçersiz YAML veya JSON, nedenini ve genellikle satırı içeren bir mesaj gösterir, bu da sorunu hızlıca bulmanıza yardımcı olur.
Hayır. JSON'da yorum olmadığı için YAML yorumları dönüştürme sırasında atılır ve geri dönüştürmek onlarsız yeni YAML üretir.
Hayır. Dönüştürme tamamen tarayıcınızda çalışır; yapıştırdığınız hiçbir şey cihazınızdan ayrılmaz.
Bu aracı göm
Bu aracı kendi web sitenize ekleyin. Aşağıdaki kod parçacığını kopyalayın; otomatik olarak güncel kalır.
<iframe src="https://monu.tools/embed/tr/yaml-json-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>İlgili araçlar
Geçersiz girişler için net hata mesajlarıyla JSON'u çevrimiçi biçimlendirin, güzelleştirin ve doğrulayın.
JSON'u tarayıcınızda küçültün ve doğrulayın ve kaç bayt kazandığınızı görün.
JSON'u CSV'ye ve CSV'yi tekrar JSON'a dönüştürün, her iki yönde. Ayırıcıyı seçin, tırnaklı alanları işleyin ve sonucu kopyalayın. Her şey tarayıcınızda çalışır.
JSON verilerinden iç içe nesneler ve diziler desteğiyle TypeScript arayüzleri oluşturun.