CSV ↔ JSON
CSV, TSV, 세미콜론 구분 데이터를 JSON으로 바꾸고 다시 CSV로 변환합니다. 따옴표로 묶인 필드와 헤더 유무를 처리하고 파일로 내려받을 수 있습니다.
브라우저 안에서만 실행됩니다. 입력한 내용은 어디에도 업로드되지 않습니다.
[
{
"id": "1",
"customer": "Ryu, Min",
"email": "ryu@example.com",
"total": "49.90",
"currency": "USD"
},
{
"id": "2",
"customer": "Ada \"the countess\" Lovelace",
"email": "ada@example.com",
"total": "120.00",
"currency": "GBP"
},
{
"id": "3",
"customer": "Grace Hopper",
"email": "grace@example.com",
"total": "15.50",
"currency": "USD"
}
]RFC 4180 규칙을 따릅니다. 따옴표로 감싼 구분자, 두 번 쓴 따옴표, 필드 안의 줄바꿈이 그대로 유지됩니다.
CSV·JSON 참고
빠른 참조- "따옴표, 필드"
- 구분자나 따옴표, 줄바꿈이 들어간 필드는 큰따옴표로 감싸야 합니다.
- 필드 안의 ""
- RFC 4180의 유일한 이스케이프 방식입니다. Ada ""the countess"" Lovelace는 Ada "the countess" Lovelace로 읽힙니다.
- 구분자
- 기본은 쉼표이지만, 쉼표를 소수점 구분자로 쓰는 지역에서는 탭(TSV)이나 세미콜론이 우선합니다.
- 헤더 행
- 헤더가 있으면 각 행이 컬럼 이름을 키로 하는 객체가 되고, 없으면 행마다 배열로 남습니다.
- CRLF와 LF
- RFC 4180은 CRLF를 쓰지만 대부분의 파서는 LF도 받아들입니다. Excel은 CRLF와 마지막 줄바꿈을 붙여 내보냅니다.
- Excel CSV
- 컬럼을 미리 텍스트로 서식하지 않으면 Excel이 앞자리 0을 지우고 긴 숫자를 바꿔 버립니다. 제어가 필요하면 데이터 → 텍스트에서 가져오기를 쓰세요.
Python 관련 문법 가이드
Python 가이드 전체Python iter(): How the Built-in Function Works
Explains Python's iter() built-in: how it creates iterators, the two-argument sentinel form, custom iterator classes, and common edge cases.
PythonPython Pika: Queues, Exchanges, Routing Keys, and Acknowledgements
Learn how to use Python's Pika client with RabbitMQ: declare queues and exchanges, publish with routing keys, consume messages, and handle acknowledgements reliably.
PythonPython Kafka: kafka-python vs Confluent Client
python kafka python vs confluent kafka: Compare kafka-python and Confluent Kafka Python clients: API differences, performance, feature coverage, and when to choose eac...
PythonPython Kafka Offsets, Partitions, and Manual Commits
Learn how Kafka offsets and partitions work and how to manually commit offsets in Python consumers with kafka-python and confluent-kafka. Covers sync vs async commits, rebalances, and seeking.