데이터 형식 변환 완전 가이드

Free CSV · XML · JSON · HTML · Markdown 회원가입 불필요 · 데이터 저장 안 함 · 오프라인 작동

이 가이드의 도구

CSV Formatter & Validator
CSV 데이터 서식 지정, 검증 및 미리보기
CSV to JSON Converter
CSV 파일을 JSON 객체로 파싱
JSON to CSV Converter
JSON 배열을 스프레드시트로 내보내기
XML Formatter & Validator
XML 문서 서식 지정 및 검증
XML to JSON Converter
XML 속성과 요소를 JSON으로 변환
JSON to XML Converter
JSON을 올바른 형식의 XML로 변환
HTML to Markdown Converter
HTML 콘텐츠를 Markdown으로 이전
JSON Formatter & Validator
JSON 서식 지정, 검증 및 압축
최종 업데이트: 2026년 3월  ·  v1.0
빠른 답변
CSV, XML, JSON, HTML, Markdown 간에는 어떻게 변환하나요?

각 형식 변환에는 서로 다른 규칙과 예외 상황이 있습니다. 반드시 알아 두어야 할 가장 중요한 5가지는 다음과 같습니다:

  1. CSV → JSON: 첫 번째 행이 키가 됩니다. 필드 내부의 쉼표에는 RFC 4180 인용 규칙을 사용하세요.
  2. XML → JSON: 속성은 @key로 매핑되며, 반복되는 형제 태그는 JSON 배열이 됩니다.
  3. JSON → CSV: 중첩 객체는 점 표기법(예: address.city)을 사용해 평탄화해야 합니다.
  4. HTML → Markdown: 표, 굵게, 링크, 제목은 깔끔하게 변환되지만, 커스텀 CSS와 colspan은 변환되지 않습니다.
  5. 이 사이트의 모든 변환은 전적으로 브라우저 안에서 실행됩니다 — 어떤 서버에도 데이터가 업로드되지 않습니다.

Data lives in many formats simultaneously. Your database exports CSV, your legacy API returns XML, your frontend expects JSON, and your documentation platform needs Markdown. Moving data between these formats without errors requires understanding each format's rules and where they differ.

CSV to JSON: handling headers, types, and nested data

CSV (Comma-Separated Values) is deceptively simple, but real-world CSV files come with complications that trip up naive parsers.

Header detection: Most CSV files have a header row. Our CSV to JSON Converter treats the first row as keys for the resulting JSON objects. If your file lacks headers, add them before converting.

Type inference: CSV has no type system — every value is a string. A good converter infers types: 42 becomes a JSON number, true becomes a boolean. Our converter applies smart type inference while letting you override when needed.

Quoting and delimiters: Fields containing commas must be quoted. Fields containing quotes must escape them by doubling. RFC 4180 defines these rules. Tab-separated (TSV), semicolon-separated, and pipe-separated variants also exist — our converter auto-detects the delimiter.

XML to JSON: attributes, arrays, and namespaces

XML and JSON represent the same concepts differently. Understanding the mapping rules prevents data loss during conversion.

Attributes vs child elements: XML attributes have no direct JSON equivalent. The standard approach maps them to keys prefixed with @: {"@id": "42"}. Our XML to JSON Converter follows this convention.

Array detection: Multiple sibling elements with the same tag name are implicitly an array. Our converter detects this automatically.

Namespaces: XML namespaces are common in SOAP APIs and enterprise XML. The prefix becomes part of the key name in JSON.

Text content with attributes: An XML element with both text content and attributes maps to a special #text key for the text content.

JSON to CSV: flattening nested objects

Converting JSON to CSV requires making a two-dimensional table out of potentially multi-dimensional data.

Simple arrays: A JSON array of flat objects converts directly to CSV. Each object becomes a row, each unique key becomes a column.

Nested objects: {"address": {"city": "London"}} must be flattened. The standard approach uses dot notation: address.city becomes a column header. Our JSON to CSV Converter handles this with the Flatten nested option.

Arrays within objects: {"tags": ["js", "python"]} has no clean CSV representation. Options include joining values with a separator or using a separate CSV for the array.

HTML to Markdown: migrating content

Converting HTML to Markdown is common when migrating content between platforms — from a CMS to a static site generator, from a web scrape to a documentation tool.

What converts cleanly: Headings, paragraphs, bold/italic, inline code, code blocks, blockquotes, lists, links, and images all have direct Markdown equivalents.

What loses fidelity: Custom CSS classes, complex table layouts, nested lists deeper than two levels, and any semantic HTML that Markdown has no syntax for.

Tables: Standard HTML tables convert to GitHub Flavored Markdown (GFM) table syntax. Complex tables with merged cells cannot be represented in Markdown. Our HTML to Markdown Converter handles standard tables and normalises whitespace output.

Frequently asked questions about data conversion

10만 행짜리 CSV를 JSON으로 어떻게 변환하나요?

CSV to JSON Converter를 사용하세요 — 서버 업로드 크기 제한 없이 브라우저의 클라이언트 측에서 파일을 처리합니다. 약 50 MB보다 큰 파일의 경우 jq나 Python의 csv 모듈 같은 명령줄 도구가 더 효율적입니다.

XML 변환 시 데이터가 손실되는 이유는 무엇인가요?

가장 흔한 원인은 XML 속성이 누락되는 것입니다. 변환기에서 속성이 보존되는지 확인하세요. 또한 XML 네임스페이스도 확인하세요 — ns:item 같은 요소는 JSON에서 리터럴 키 이름이 됩니다.

CSV 파일을 XML로 바로 변환할 수 있나요?

단일 도구로 바로 변환할 수는 없습니다. 먼저 CSV to JSON Converter로 CSV를 JSON으로 변환한 다음, JSON to XML Converter로 JSON을 XML로 변환하세요. 두 단계, 같은 브라우저, 업로드되는 데이터 없음.

HTML to Markdown 변환 시 서식이 손실되는 이유는 무엇인가요?

Markdown은 의도적으로 제한적입니다 — 일반적인 서식 요구의 80%를 다룹니다. CSS 스타일링, 커스텀 클래스, 복잡한 레이아웃에는 Markdown에 대응하는 요소가 없습니다.

API 응답에 가장 적합한 형식은 무엇인가요?

JSON은 REST API의 표준입니다. 파서 지원이 가장 뛰어나고, 일반적인 구조화된 데이터에서 페이로드 크기가 가장 작으며, JavaScript에서 기본 지원됩니다. XML은 SOAP API나 레거시 엔터프라이즈 시스템 연동에만 사용하세요.