# Jina Reader

> Turn any URL into clean, LLM-friendly Markdown

- Category: Data & Labeling / Web Scraping & Crawling
- Repository: https://github.com/jina-ai/reader
- Website: https://jina.ai/reader
- Canonical page: https://ai-tldr.dev/tools/jina-reader/

## In short

Jina Reader is a service that converts any web URL into clean Markdown that language models can read. You prepend `https://r.jina.ai/` to a target URL and get back text that strips away the boilerplate, so your agent or RAG pipeline receives usable content instead of raw HTML. It sits in the Web Scraping & Crawling category of the Data & Labeling tools.

## Overview

Jina Reader is a service that converts any web URL into clean Markdown that language models can read. You prepend `https://r.jina.ai/` to a target URL and get back text that strips away the boilerplate, so your agent or RAG pipeline receives usable content instead of raw HTML.

It is aimed at developers building RAG systems and LLM agents who need reliable page content without writing their own scraping and rendering stack. Reader handles JavaScript-rendered pages with headless Chrome (falling back to a lightweight fetch), parses PDFs with PDF.js, converts Word, Excel, and PowerPoint files, and captions images so a text-only model still gets useful hints.

Within the web scraping and crawling category, Reader covers both reading and searching. A companion endpoint, `https://s.jina.ai/`, runs a web search, fetches the top results, and applies the same conversion to each, returning full content rather than just titles and snippets. This repository is the open-source branch behind those hosted endpoints and runs in stateless or bucket-cached mode.

## What it does

- Read mode: prepend `https://r.jina.ai/` to any URL to get LLM-friendly Markdown back
- Search mode: prepend `https://s.jina.ai/` to a query to search the web and fetch the top 5 results as Markdown
- Renders JavaScript pages with headless Chrome, or fetches lightweight via curl-impersonate, choosing between them automatically
- Parses PDFs with PDF.js and converts MS Office documents (Word, Excel, PowerPoint) via LibreOffice
- Captions images with a vision-language model so text-only LLMs get context
- Output format control via the `x-respond-with` header: markdown, html, text, screenshot, pageshot, or frontmatter

## Getting started

The hosted API needs no install — you just prepend a Reader prefix to your URL or query. The examples below use plain HTTP requests.

1. Read a single URL

   Prepend `https://r.jina.ai/` to any URL to get back LLM-friendly Markdown.

```bash
curl 'https://r.jina.ai/https://en.wikipedia.org/wiki/Artificial_intelligence'
```

2. Search the web

   Prepend `https://s.jina.ai/` to a URL-encoded query. Reader fetches the top 5 results and converts each one for you.

```bash
curl 'https://s.jina.ai/When%20was%20Jina%20AI%20founded%3F?site=jina.ai&site=github.com'
```

3. Choose an output format

   Use the `x-respond-with` header to pick a format such as `markdown`, `html`, `text`, `screenshot`, or `frontmatter`.

```bash
curl -H 'X-Respond-With: frontmatter' 'https://r.jina.ai/https://example.com'
```

## When to use it

- Feeding clean page content into a RAG pipeline without building your own browser-rendering and scraping stack
- Giving an LLM agent live web access by reading URLs or running web searches that return full content
- Ingesting PDFs and Office documents (Word, Excel, PowerPoint) as Markdown for downstream processing
- Capturing JavaScript-heavy pages that a simple HTTP fetch would miss, with optional screenshots
