Get started with Duckling in 5 minutes.
Choose your preferred method:
=== "Docker (Recommended)"
The fastest way to get started - no dependencies to install!
**Option 1: Pre-built Images (Fastest)**
```bash
# Download the compose file
curl -O https://raw.githubusercontent.com/duckling-ui/duckling/main/docker-compose.prebuilt.yml
# Start Duckling
docker-compose -f docker-compose.prebuilt.yml up -d
```
**Option 2: Build Locally**
```bash
# Clone and start
git clone https://github.com/duckling-ui/duckling.git
cd duckling
docker-compose up --build
```
The UI will be available at `http://localhost:3000`
!!! tip "First Run"
The first startup may take a few minutes as Docker downloads/builds the images.
=== "Manual Setup"
### Terminal 1: Backend
```bash
cd backend
source venv/bin/activate # Windows: venv\Scripts\activate
python duckling.py
```
The API will be available at `http://localhost:5001`
### Terminal 2: Frontend
```bash
cd frontend
npm run dev
```
The UI will be available at `http://localhost:3000`
Navigate to http://localhost:3000 in your browser.
Drag and drop a PDF, Word document, or image onto the drop zone, or click to browse.
The conversion progress will be displayed in real-time.
Once complete, choose your export format:
{ loading=lazy } Conversion complete with export options- Markdown — Great for documentation
- HTML — Web-ready output
- JSON — Full document structure
- Plain Text — Simple text extraction
- DocTags — Tagged document format for structured pipelines
- DocLang — AI-native XML (
.dclg.xml) for LLM and agent workflows; see Supported formats - Document Tokens — Token-level JSON representation
- RAG Chunks — Chunked output for retrieval applications
!!! note "DocLang availability" DocLang requires Docling 2.70.0+ and docling-core 2.70.0+. After upgrading dependencies, re-convert the document — the export panel only shows formats that were generated for that job.
Click the :material-cog: Settings button to configure:
| Setting | Default | Description |
|---|---|---|
| Enabled | true |
Enable OCR for scanned documents |
| Backend | easyocr |
OCR engine to use |
| Language | en |
Primary language |
| Setting | Default | Description |
|---|---|---|
| Enabled | true |
Extract tables from documents |
| Mode | accurate |
Detection accuracy level |
| Setting | Default | Description |
|---|---|---|
| Extract | true |
Extract embedded images |
| Scale | 1.0 |
Image output scale |
To convert multiple files at once:
- Drag and drop multiple files or a whole folder onto the drop zone. The browser expands a folder into its files; Duckling queues every supported document (unsupported types are skipped).
- Click the drop zone to open a folder picker and upload all supported files inside that folder at once.
- Use Choose files… when you want to pick individual files only (not folder mode).
All queued files are processed according to the job queue (see Features for concurrent limits).
!!! tip "Performance" Batch processing uses a job queue with a maximum of 2 concurrent conversions to prevent memory exhaustion.
For programmatic access, use the REST API:
# Upload and convert a document
curl -X POST http://localhost:5001/api/convert \
-F "file=@document.pdf"
# Response
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "processing"
}Check the API Reference for complete documentation.
- Features - Explore all capabilities
- Configuration - Advanced settings
- API Reference - Integrate with your apps