// Mixed indentation
user:
name: John
age: 25YAML requires consistent indentation. The line above mixes two and four spaces, which is a parse error.
入力して検索するか、ツールを選んでください。
ブラウザでYAMLをJSONに即座に変換。高速、無料、開発者向け — アップロード不要、行単位エラー、完全なクライアントサイド処理。
YAML input
JSON output
YAML is a human-friendly data serialization format used for configuration, CI pipelines, and Kubernetes manifests. It uses indentation (no braces or brackets) to express structure and supports maps, sequences, scalars, anchors, and multiline strings.
JSON is the lingua franca of web APIs. It is strict about quoting strings and has only six value types — object, array, string, number, boolean, and null. Every YAML document can be expressed as JSON, but not the other way around.
YAML optimises for humans. JSON optimises for machines. YAML allows comments and anchors; JSON does not. YAML is whitespace-sensitive; JSON uses explicit { } and [ ]. When you convert from YAML to JSON, comments are dropped and YAML's flexible scalars (unquoted strings, dates) are emitted as proper JSON types where possible.
// Mixed indentation
user:
name: John
age: 25YAML requires consistent indentation. The line above mixes two and four spaces, which is a parse error.
// Missing colon
title YAML without a colonEvery key in a mapping needs a : separator. Without one, YAML reads the line as a plain scalar and skips it.
// Tab characters
key: valueYAML forbids tabs for indentation. Use spaces only. Most editors convert tabs to spaces automatically — but a stray one will break the file.
// Unsupported syntax
This converter supports the core YAML 1.2 spec. Custom tags and esoteric directives are not parsed.
// シンプルオブジェクト
// ネストされたオブジェクト
// 要素の配列
いいえ。変換はJavaScriptを使ってブラウザ内で完全に実行されます。ネットワークタブを開くと、データを含むリクエストは表示されません。
JSONにはコメント構文がないため、変換中にコメントは削除されます。
解析が失敗した正確な行と列、および最も可能性の高い修正を説明するヒントを含むエラーメッセージが表示されます。
はい。ファイルを入力パネルにドラッグするか、アップロードボタンを使用します。
固定の制限はありませんが、非常に大きいファイルはUIを一時停止させる場合があります。
はい — 最も強力な保証は、データがブラウザを決して出てこないことです。
YAMLデータをJSON形式に変換します。YAMLのネストされた構造がJSONのオブジェクト構造に変換されます。
YAMLの配列はJSONの配列に、マップはJSONのオブジェクトに変換されます。データ型も対応するJSON型に変換されます。
JSONはWeb開発で最も一般的なデータフォーマットであり、APIリクエストやレスポンスで広く使用されます。
Kubernetesリソース定義をJSON形式に変換し、JSONを扱うツールやAPIで使用する場合に便利です。
設定ファイルをJSON形式に変換し、JavaScriptやTypeScriptのアプリケーションで読み込む場合があります。
YAML形式のデータをJSON形式に変換し、JSONスキーマ検証やJSONPathクエリで処理する際に使用します。
YAMLのデータ型(文字列、数値、ブール値、null)はJSONの対応する型に変換されます。文字列は二重引用符で囲まれます。
YAMLのコメントは変換後に除去されます。JSONはコメントをサポートしていないためです。
YAMLの anchors と aliases(& と *)は変換前に展開が必要です。展開しないと変換エラーになる場合があります。