Japanese OCR · 日本語PDF

Convert Japanese PDF to Markdown without broken spacing

Turn digital or scanned Japanese PDFs into structured Markdown with selectable Japanese OCR. Keep headings, tables and formulas, understand the real limits of vertical text and furigana, and prepare a reviewable source for search or RAG.

Short answer

Choose Japanese OCR, then review the details that matter

A Japanese PDF can contain real text, page images, or both. The converter reads an existing text layer when it is trustworthy and uses OCR for image-only pages. Choose 日本語 in the OCR language selector so the engine loads the right recognition model. MinerU is the default and the stronger choice for Japanese scans in our verification; Docling remains useful for clean, simple documents. The output is ordinary Markdown that you can preview, copy, download and validate against the original PDF.

Four steps

Convert a Japanese PDF in the web app

No account is needed for the free browser flow. Your OCR choice applies to this conversion and is remembered locally.

1

Add the PDF

Open the web converter, upload a file, drag it onto the page, or paste a direct PDF URL. Digital, mixed and image-only documents use the same flow.

2

Select 日本語 for OCR

Set OCR language to Japanese. Automatic OCR handles image-only pages. Enable Force OCR when selectable text exists but copying it produces mojibake, false characters or missing lines.

3

Convert with MinerU first

MinerU is the default because it was more accurate on the Japanese fixture and handles complex scans well. If a clean digital layout looks unusual, compare the Docling result rather than assuming one engine wins on every file.

4

Review and export

Check names, dates, amounts, tables, vertical passages and ruby annotations in rendered and Raw views. Then copy the Markdown or download the .md file.

Why Japanese PDFs are different

No word spaces is normal; false spaces are not

Japanese typography carries structure differently from English. A reliable workflow keeps that distinction instead of treating every unusual gap or width as an OCR error.

No word boundaries

Japanese normally joins kanji, hiragana and katakana without spaces. Do not add English-style gaps.

False PDF spaces

Glyph positions and OCR boxes can insert gaps inside names or compounds. Check Latin text and numbers before removing them.

全角 and 半角

NFKC can align full-width and half-width forms for search, but it is not a lossless repair.

Mixed scripts

Product codes, URLs and Latin abbreviations need their spaces and punctuation preserved.

Dense tables

Invoices and forms use narrow columns. Verify row alignment and totals even when the prose is accurate.

Small annotations

Furigana and footnote marks are useful, but among the least reliable OCR elements.

Verified expectations

What our Japanese OCR check actually showed

The EP-070 production verification used image-only Japanese fixtures on both conversion pools. These findings describe a controlled check, not a guarantee for every font, scan or historical document.

Horizontal Japanese

MinerU: near-perfect kanji and kana on the fixture, with minor character drops. It remains the default engine.
Docling: readable but weaker, with several kanji confusions in the sample. It can still be worth comparing on simple digital layouts.

縦書き and furigana

Reading order: the vertical fixture stayed coherent and MinerU followed the correct order, which is better than treating columns left to right.
Caveats: punctuation, line breaks and occasional characters were lost. Furigana was not verified as reliable and must be checked against the page.

Use the source as evidence. For contracts, invoices, personal names, dates and amounts, keep the PDF beside the Markdown and review every value that drives a decision.

Cleanup for search and RAG

Normalize a copy, not your only source

OCR output should remain auditable. Save the original Markdown first, then create a normalized derivative for retrieval, embeddings or full-text search. This lets you improve matching without hiding what the converter returned.

1

Preserve the raw conversion

Store the original Markdown with its source file name and conversion date.

2

Apply NFKC deliberately

Match ABC123 with ABC123, but review compatibility symbols and meaningful typography.

3

Repair false spaces conservatively

Join obvious Japanese compounds while preserving spaces around Latin words, model numbers, URLs and units.

4

Chunk by document structure

Use headings, paragraphs and tables before fixed token windows. Add source and page metadata for citations.

# 請求書

## 請求先
株式会社サンプル

| 項目 | 数量 | 金額 |
| --- | ---: | ---: |
| API利用料 | 1 | ¥12,000 |

出典: invoice-2026-08.pdf / page 1
Documents and automation

One workflow for common Japanese documents

請求書, 契約書, 論文 and 官公庁資料 need different checks: invoice totals and rows; contract names, dates and clauses; paper formulas and reading order; government tables, era dates and older typography.

Browser workflow

Use the free Web converter for interactive review. Japanese UI selects Japanese OCR by default unless another language was saved.

REST API workflow

Pass ocr_lang inside per-job options. The accepted language codes are ru, en, ja, es, pt, de and fr. Omitting the field preserves the server default.

curl -X POST https://pdf2md.dev/api/v2/jobs \
  -H "Authorization: Bearer p2m_…" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/japanese-report.pdf",
    "options": {"ocr_lang": "ja", "engine": "mineru"}
  }'

The option is per request. It does not change account defaults, and older clients that send no ocr_lang continue to use the existing behavior.

Ready to convert a Japanese PDF?

Start in the browser, or use the same Japanese OCR pipeline from code and AI agents.

FAQ

Japanese PDF OCR questions

Can OCR convert a scanned Japanese PDF to Markdown?

Yes. Select Japanese OCR. MinerU was near-perfect on the controlled fixture, with minor character drops.

Why are there spaces inside Japanese words?

PDF positions or OCR segmentation can create false gaps. Preserve intentional spaces around Latin text and numbers.

Does Japanese OCR handle 縦書き?

With caveats. Reading order was correct, but punctuation, line breaks and occasional characters were lost.

Will furigana be preserved?

Not reliably. Small ruby may be merged, detached or omitted, so check important readings manually.

Should I use MinerU or Docling for Japanese?

Start with MinerU. Docling was readable but weaker and is useful as a comparison.

Is Japanese OCR available on the free plan?

Yes. Both pools passed verification; normal free limits still apply.