UtilitySansar
Data

JSON to YAML Converter

Paste a JSON object or array and get clean, two-space indented YAML — ideal for Kubernetes manifests, GitHub Actions workflows, Ansible playbooks, and application configs. Conversion runs entirely in your browser.

도구 요약

이 도구는 구조화된 입력을 받아 서버 업로드 없이 브라우저에서 결정적인 출력을 반환합니다.

도구 이름
JSON to YAML Converter
입력 의도
변환·검증·분석할 원본 콘텐츠를 제공하세요.
출력 의도
복사, 재사용 또는 디버깅에 적합한 정규화된 출력을 받습니다.
예시 입력
{"name":"api","replicas":3,"env":["prod","staging"]}
예시 출력
name: api replicas: 3 env: - prod - staging

Paste JSON above and click Convert to YAML.

도구 소개

Paste a JSON object or array and get clean, two-space indented YAML — ideal for Kubernetes manifests, GitHub Actions workflows, Ansible playbooks, and application configs. Conversion runs entirely in your browser.

도구 개요

YAML is the de-facto config format for CI/CD pipelines and infrastructure-as-code because it is easier for humans to scan than JSON. This converter reads your JSON with the strict built-in parser, then emits YAML using plain-style scalars where safe and double-quoted strings when a value is ambiguous (looks like a number, boolean, or reserved keyword). Nested objects become block mappings, arrays become sequences, and empty collections collapse to `{}` or `[]`.

사용 사례

  • Turn API response fixtures into readable YAML for docs
  • Rewrite JSON Kubernetes manifests as YAML
  • Seed a GitHub Actions matrix from a JSON list
  • Convert Postman/Insomnia exports for tooling that prefers YAML

입력/출력 예시

입력 의도
{"name":"api","replicas":3,"env":["prod","staging"]}
출력 의도
name: api
replicas: 3
env:
  - prod
  - staging
Strings that look like numbers (like "3") are quoted so they round-trip safely.
입력 의도
{"version":"3","services":{"web":{"image":"nginx","ports":["80:80"]}}}
출력 의도
version: "3"
services:
  web:
    image: nginx
    ports:
      - "80:80"
Top-level JSON arrays become block sequences.
입력 의도
[{"id":1,"active":true},{"id":2,"active":false}]
출력 의도
- id: 1
  active: true
- id: 2
  active: false

자주 묻는 질문

Is my JSON uploaded anywhere?+
No. The conversion runs 100% in your browser — nothing is transmitted to a server, logged, or stored.
Is this JSON to YAML converter free?+
Yes. Every UtilitySansar tool is free, unlimited, and has no ads inside the tool area.
Why are some of my strings quoted in the output?+
Values that look like numbers, booleans, null, or contain characters YAML treats specially (:, #, -, leading spaces) are double-quoted so they round-trip back to the same JSON value.
Does it support YAML anchors, tags, or multi-line scalars?+
Not yet. The output uses block and flow scalars only, which covers the vast majority of real-world Kubernetes, GitHub Actions, and Docker Compose configs.
What indentation does it use?+
Two spaces per level, matching the default for Kubernetes, GitHub Actions, Ansible, and most YAML style guides.

다른 도구 보기

아래의 Data 카테고리에서 관련 유틸리티를 찾아보세요.

전체 Data 보기

관련 도구

유용할 수 있는 엄선된 유틸리티