UtilitySansar
Data

YAML to JSON Converter

Paste YAML and get structured JSON back. Handy for debugging CI configs, feeding YAML into a tool that only speaks JSON, or just inspecting what your config actually resolves to.

도구 요약

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

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

Paste YAML above and click Convert to JSON.

도구 소개

Paste YAML and get structured JSON back. Handy for debugging CI configs, feeding YAML into a tool that only speaks JSON, or just inspecting what your config actually resolves to.

도구 개요

The converter tokenizes your YAML line by line, tracks indentation to build the hierarchy, and resolves scalars to their JSON-native types (numbers, booleans, null, strings). Both block style (indented) and flow style ([a, b] / {k: v}) mappings and sequences are supported, along with comments, single- and double-quoted strings, and the usual `null`/`~`/`true`/`false` aliases.

사용 사례

  • Inspect a Kubernetes manifest as JSON
  • Pipe a YAML config into jq or a JSON Schema validator
  • Convert Docker Compose files for tools that require JSON
  • Debug why a CI config is being parsed a certain way

입력/출력 예시

입력 의도
name: api
replicas: 3
env:
  - prod
  - staging
출력 의도
{
  "name": "api",
  "replicas": 3,
  "env": [
    "prod",
    "staging"
  ]
}
Comments are stripped and flow-style arrays are supported.
입력 의도
# deployment config
image: nginx:1.25
ports: [80, 443]
labels:
  app: web
  tier: frontend
출력 의도
{
  "image": "nginx:1.25",
  "ports": [80, 443],
  "labels": {
    "app": "web",
    "tier": "frontend"
  }
}
Scalars resolve to their JSON-native types.
입력 의도
greeting: 'hello world'
count: 42
enabled: true
nothing: null
출력 의도
{
  "greeting": "hello world",
  "count": 42,
  "enabled": true,
  "nothing": null
}

자주 묻는 질문

Is this YAML to JSON converter free?+
Yes. It runs entirely in your browser, with no sign-up, no file-size gates, and no ads inside the tool.
What subset of YAML is supported?+
Block and flow mappings/sequences, plain and quoted scalars, comments, and null/boolean/number resolution. Anchors (&), aliases (*), tags (!!type), and multi-line scalars (|, >) are not yet supported.
Will it coerce numeric strings like "007"?+
Leading-zero strings are kept as strings. Only values that match a strict integer or float pattern are converted to numbers.
Is my data sent to a server?+
No. Parsing and conversion happen entirely in your browser — the page never talks to a backend.
Can I convert Kubernetes, Docker Compose, or GitHub Actions YAML?+
Yes. Those configs use the block/flow features this converter supports. Paste the file and the resulting JSON is ready for jq, JSON Schema validators, or direct import into code.

다른 도구 보기

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

전체 Data 보기

관련 도구

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