המרת 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, המכסה את התכונות הנפוצות: מיפויים, רצפים, סקלרים, עוגנים ומחרוזות רב-שורתיות.
הקלט מפוענח לפני ההמרה, כך ש-YAML או JSON לא תקין מציג הודעה עם הסיבה ולעיתים קרובות גם את השורה, מה שעוזר לאתר את הבעיה במהירות.
לא. הערות YAML מושמטות במהלך ההמרה כי ל-JSON אין הערות, וההמרה חזרה מייצרת YAML חדש ללא הערות.
לא. ההמרה רצה כולה בדפדפן שלכם; שום דבר שתדביקו לא עוזב את המכשיר שלכם.
הטמע את הכלי הזה
הוסף את הכלי הזה לאתר שלך. העתק את קטע הקוד שלהלן; הוא מתעדכן אוטומטית.
<iframe src="https://monu.tools/embed/he/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, עם טיפוסים מקוננים, מערכים ושדות אופציונליים. פועל בדפדפן שלכם.