حوّل YAML إلى JSON وأعد JSON إلى YAML في كلا الاتجاهين. يتحقق من الصحة أثناء التحويل ويعرض أخطاء واضحة. كل شيء يعمل داخل متصفحك.
كيفية استخدام YAML ⇄ JSON
اختر الاتجاه: YAML إلى JSON أو JSON إلى YAML.
الصق YAML أو JSON في لوحة الإدخال.
انسخ النتيجة المحوّلة، أو اقرأ الخطأ إذا كان المدخل غير صالح.
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.
الأسئلة الشائعة
يستخدم المحلل المتوافق مع YAML 1.2 / 1.1 من js-yaml، ويغطي الميزات الشائعة: التعيينات والتسلسلات والقيم القياسية والمراسي (anchors) والسلاسل متعددة الأسطر.
يُحلَّل المدخل قبل التحويل، لذا يعرض YAML أو JSON غير الصالح رسالة بالسبب وغالباً برقم السطر، مما يساعدك على رصد المشكلة بسرعة.
لا. تُحذف تعليقات YAML أثناء التحويل لأن JSON لا يحتوي على تعليقات، ويُنشئ التحويل العكسي YAML جديداً بدونها.
لا. يجري التحويل بالكامل داخل متصفحك، ولا يغادر أي شيء تلصقه جهازك.
ضمّن هذه الأداة
أضف هذه الأداة إلى موقعك الخاص. انسخ المقتطف أدناه، ويبقى محدّثاً تلقائياً.
<iframe src="https://monu.tools/embed/ar/yaml-json-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>أدوات ذات صلة
نسّق JSON وجمّله وتحقّق من صحته عبر الإنترنت، مع رسائل خطأ واضحة للمدخلات غير الصحيحة.
صغّر JSON وتحقق من صحته داخل متصفحك، وشاهد كم بايت توفّر.
حوّل JSON إلى CSV وأعد CSV إلى JSON في كلا الاتجاهين. اختر الفاصل، وتعامل مع الحقول المقتبسة، وانسخ النتيجة. كل شيء يعمل داخل متصفحك.
ولّد واجهات TypeScript من عينة JSON، مع الأنواع المتداخلة والمصفوفات والحقول الاختيارية. يعمل داخل متصفحك.