> For the complete documentation index, see [llms.txt](https://docs.universaldatatool.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.universaldatatool.com/importing-data/import-from-csv-or-json.md).

# Import from CSV or JSON

You can add samples to a dataset using a CSV or JSON file. Make sure your file is formatted in either the [UDT JSON format](/the-format-.udt-json/what-is-the-.udt.json-format.md) or the [UDT CSV format](/the-format-.udt-json/what-is-the-.udt.csv-format.md).

Navigate to `Samples > Import > Import from CSV / JSON` and upload or paste the contents of your file.

![Import from CSV / JSON button](/files/-MIDDV5LFiYk9eQKEXWf)

![Import from CSV / JSON dialog](/files/-MIDD_QBN-Yvg1BZFbRg)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.universaldatatool.com/importing-data/import-from-csv-or-json.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
