YAMLからJSONへの変換ツール
YAMLをお使いのブラウザ内でJSONに変換します。ネストしたマップ、リスト、文字列、数値、真偽値に対応しています。
このツールの使い方
- 1
Paste or type your YAML into the input box, using spaces (not tabs) for indentation.
- 2
Read the pretty-printed JSON that appears below the box as you type.
- 3
If a red error message shows instead, check your indentation and remove unsupported syntax.
- 4
Select and copy the JSON output to paste into your config, code, or API client.
YAMLからJSONへの変換ツールとは何ですか?
YAMLとJSONはどちらもデータ交換フォーマットであり、同じ構造を表現できます。YAMLは(波括弧や引用符がなく)人にとって読みやすい一方、JSONはより広く解析できます。両者を相互に変換することは、JSONしか受け付けないツールにデータを渡す必要がある場合に、設定ファイル(GitHub Actions、Docker Compose)でよく行われます。
よくある活用例
Quickly turning a small docker-compose.yml or GitHub Actions snippet into JSON to inspect its structure.
Converting a hand-written config block into JSON to paste into a tool or API that only accepts JSON.
Checking how YAML scalars like true, 123, or ~ get typed once they become JSON values.
Sanity-checking indentation in a YAML fragment by seeing whether the nesting comes out as you expect.
Generating seed JSON fixtures for tests from a more readable YAML draft.
Teaching or learning the mapping between YAML structures and their JSON equivalents.
よくある質問
YAMLの高度な機能はサポートされていますか?▼
関連ツール
JWTデコーダー
JSON Web Token(JWT)を瞬時にデコードします。お使いのブラウザ内で実行されるため、トークンがデバイスの外に出ることはなく、本番環境のシークレットでも安全に利用できます。
JSONフォーマッター&バリデーター
JSONをオンラインで整形、検証、minify(圧縮)します。すべてお使いのブラウザ内で動作するため、データがデバイスから外に出ることはありません。
XMLフォーマッター
XMLドキュメントを整形して読みやすくします。SOAP、サイトマップ、RSSフィード、設定ファイルに役立ちます。
Base64エンコーダー&デコーダー
文字列をBase64にエンコードしたり、Base64をテキストにデコードしたりします。あなたのプライバシーを尊重し、すべてブラウザ内で実行されます。
URLエンコーダー&デコーダー
テキストをURLセーフなエンコード(パーセントエンコーディング)に変換したり、その逆を行ったりします。クエリ文字列、リダイレクト、OAuthフローに役立ちます。
HTMLエンティティエンコーダー&デコーダー
特殊文字をHTMLエンティティ(&、<など)に変換したり、その逆を行ったりします。テキストを安全にHTMLへ埋め込むのに役立ちます。