---
title: "An Introduction to Data Formats in ClickHouse"
description: "ClickHouse can import and export a wide range of formats through the FORMAT clause and related settings."
url: "https://swe.quest/articles/an-introduction-to-data-formats-in-clickhouse-9760492f888ea4b5"
canonical: "https://clickhouse.com/blog/data-formats-clickhouse-csv-tsv-parquet-native"
source: "ClickHouse"
published: "2023-01-24"
difficulty: "medium"
kind: "How-to"
reading_minutes: 6
tags: ["analytics","data-pipelines","databases"]
---

# An Introduction to Data Formats in ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-01-24, 6 min read, How-to. Original: [https://clickhouse.com/blog/data-formats-clickhouse-csv-tsv-parquet-native](https://clickhouse.com/blog/data-formats-clickhouse-csv-tsv-parquet-native)

## Summary

ClickHouse can import and export a wide range of formats through the FORMAT clause and related settings. Covered here: CSV and TSV with custom delimiters, CustomSeparated for broken CSVs, JSONEachRow for NDJSON, Regexp and Template for custom text, Native and RowBinary for efficient transfer between servers, Parquet and other Apache formats, and SQLInsert/MySQLDump for SQL dumps. Two practical tricks: the Null format benchmarks queries without printing output, and Pretty\* variants control how CLI results are displayed. clickhouse-local with the file() function lets you inspect local files before loading them.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- command-line usage

## Keywords

ClickHouse, clickhouse-local, Parquet, CSV, JSONEachRow, Native format, MySQLDump

## Related posts

- [Extracting, Converting, and Querying Data in Local Files using clickhouse-local](https://swe.quest/articles/extracting-converting-and-querying-data-in-local-files-using-clickhouse-local-46ff61f0273cc3b7.md): ClickHouse · 2023-01-04 · Medium · 13 min read · Analytics & OLAP, SQL, Data pipelines, Developer tools
  clickhouse-local runs ClickHouse's SQL engine as a standalone CLI, so you can query, transform and convert local, piped, HTTP, S3, MySQL or Postgres data without deploying a server.
- [A Deep Dive into Apache Parquet with ClickHouse - Part 1](https://swe.quest/articles/a-deep-dive-into-apache-parquet-with-clickhouse-part-1-cafa50694ad68bf6.md): ClickHouse · 2023-04-18 · Medium · 11 min read · Analytics & OLAP, Data pipelines, SQL
  ClickHouse can read and write Apache Parquet through its file and s3 table functions, using the same Parquet code in ClickHouse Local and ClickHouse Server.
- [ClickHouse Input format matchup: Which is fastest & most efficient](https://swe.quest/articles/clickhouse-input-format-matchup-which-is-fastest-most-efficient-9abb3bd9e520be60.md): ClickHouse · 2025-02-26 · Medium · 22 min read · Analytics & OLAP, Performance engineering, Databases, Data pipelines
  FastFormats is a benchmark that measures ClickHouse server-side ingestion time and hardware efficiency across roughly 60 input formats, crossed with batch size, pre-sorting and compression, using the ClickBench web analytics dataset over the HTTP interface.
- [Getting Data Into ClickHouse - Part 1](https://swe.quest/articles/getting-data-into-clickhouse-part-1-31fa78b8cfd1bb8c.md): ClickHouse · 2022-08-26 · Medium · 11 min read · Analytics & OLAP, SQL, Databases
  ClickHouse can load a 28.7M-row, 4.6GB gzipped Hacker News CSV with a single command, using schema inference via clickhouse-local's file() and the url() table function.
- [Analyzing Hugging Face datasets with ClickHouse](https://swe.quest/articles/analyzing-hugging-face-datasets-with-clickhouse-12e5d1b0f22de93c.md): ClickHouse · 2023-08-29 · Medium · 28 min read · Analytics & OLAP, SQL, Machine learning
  Hugging Face's Datasets Server automatically converts every dataset to Parquet and exposes the file URLs through a REST endpoint, so clickhouse-local can query any dataset with plain SQL via the url function and URL table engine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
