המירו JSON ל-TOML ו-TOML חזרה ל-JSON, בשני הכיוונים, הכול בתוך הדפדפן שלכם.
כיצד להשתמש בJSON / TOML
בחרו כיוון: JSON ל-TOML או TOML ל-JSON.
הדביקו את ה-JSON או ה-TOML שלכם.
העתיקו את התוצאה, או החליפו כדי להמיר בחזרה.
This is a two-way converter between JSON and TOML. Pick a direction, paste your data, and copy the result. It is built on a well-tested TOML parser that handles nested tables and arrays of tables correctly.
Everything runs locally in your browser, so your data, which for config files can include hostnames or tokens, never leaves your device.
TOML (Tom's Obvious, Minimal Language) is a configuration format designed to be obvious to read and to map cleanly onto a hash table. It is what Rust's Cargo uses for Cargo.toml and what Python projects use for pyproject.toml, among many others.
JSON and TOML describe similar data but suit different jobs. JSON is the lingua franca for APIs and machine exchange. TOML is built for human-written config, with sections, comments and first-class dates that make a settings file pleasant to edit.
TOML also supports native date and time values and typed numbers, so values keep their meaning rather than all becoming strings, which is part of why it is preferred for configuration.
Most data round-trips cleanly, but there is one catch. TOML has no null value. JSON nulls cannot be represented, so remove or replace them before converting to TOML, otherwise the conversion cannot express them.
שאלות נפוצות
TOML הוא פורמט תצורה מינימלי שתוכנן להיות קל לקריאה, בשימוש על ידי כלים כמו Cargo ופרויקטים רבים ב-Python בקובץ pyproject.toml.
רוב הנתונים כן. ל-TOML אין null, ולכן ערכי null של JSON אינם ניתנים לייצוג, הסירו או החליפו אותם לפני ההמרה.
לא. ההמרה מתבצעת כולה בתוך הדפדפן שלכם, כך שהנתונים שלכם לעולם לא עוזבים את המכשיר.
הטמע את הכלי הזה
הוסף את הכלי הזה לאתר שלך. העתק את קטע הקוד שלהלן; הוא מתעדכן אוטומטית.
<iframe src="https://monu.tools/embed/he/json-toml-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, בשני הכיוונים. בחרו את התו המפריד, טפלו בשדות במרכאות והעתיקו את התוצאה. הכול רץ בדפדפן שלכם.
המרת YAML ל-JSON ו-JSON חזרה ל-YAML, בשני הכיוונים. מאמת תוך כדי המרה ומציג שגיאות ברורות. הכול רץ בדפדפן שלכם.