본문으로 건너뛰기

PDF를 텍스트로

글자를 일반 .txt 파일로 추출해요.

기기에서 처리됨

이 도구는 브라우저 안에서만 실행돼요. 파일은 절대 업로드되지 않으며, 브라우저의 네트워크 탭에서 직접 확인할 수 있어요. 직접 확인해 보세요. 브라우저의 네트워크 탭을 열어 두고 지켜보면, 남은 작업이 있는지 묻는 작은 요청 하나만 보여요. 도구 이름과 해시뿐이고, 파일은 절대 포함되지 않아요.

이 도구가 하는 일

This extracts the words from a PDF and writes them into a plain .txt file. A PDF does not store text as sentences - it stores glyphs at coordinates - so reading order, word boundaries and paragraph breaks are all reconstructed from the geometry of the page. Every extractor guesses that slightly differently, which is why the same document gives different output in different tools, and why there are two modes here rather than one.

Lifting a quotation out of a report without retyping it, feeding a document to a script or a language model, searching a book you only have as a PDF, or checking what a page actually contains when a table detector insists it found nothing.

작동 방식

  1. Drop the PDF onto this page. One file at a time, up to 300 MB.
  2. Choose reading order for prose you intend to paste somewhere, or layout to keep columns and tables lined up with spaces.
  3. Decide whether pages are separated by a marker line and whether page numbers are printed into the file.
  4. Leave rejoin hyphenated words on so a word broken across a line break comes back together.
  5. Under advanced options, set a page range, or switch the encoding to UTF-8 with a BOM if Excel or Notepad will open the file.
  6. Press Convert to text and the .txt downloads on its own.

The two modes solve opposite problems. Reading order joins the lines of a paragraph back into flowing prose, which is what you want in an email, a script or a quotation. Layout mode keeps every line where it was on the page, padding with spaces so columns stay aligned - right for a table, a code listing or a form, and wrong for prose, where the padding becomes ragged whitespace you then strip out. If the output looks strange, the mode is usually why.

Rejoining hyphenated words is more careful than a search-and-replace. A hyphen at the end of a line is joined only when the character before it and the first character of the next line are both lowercase, so a word broken as inter- and national comes back as international, while a compound such as self-service, or a hyphen followed by a capitalised name, is left as written. The rule errs towards leaving a real hyphen alone rather than towards editing your text.

A scanned document is detected before any work happens. The first five pages are sampled for a text layer, and when there is none the tool stops and points at OCR, since a scan is a picture of words with nothing in it to extract. Reporting no text found would be technically true and practically useless.

The encoding option is small and saves a familiar afternoon. UTF-8 without a byte order mark is what a script, a git repository or a text editor wants. UTF-8 with a BOM is what makes Excel and Notepad recognise the file as UTF-8 instead of guessing a legacy code page and mangling every accented character. If names come out as strings of symbols, the BOM is what was missing.

Extraction runs in a Web Worker and the text file is written there too, so a confidential document is never sent anywhere to have its words read. The result reports the page count, the character and word counts and how many pages came out empty - often the quickest sign that part of a document is scanned while the rest is not.

이 도구가 할 수 없는 일

  • Columns, sidebars, headers and footnotes come out in the order the reconstruction decides on, which is not always the order a person reads them in. Layout mode is often clearer for those pages.
  • A scanned page contains no text to extract. That is detected and reported with a link to OCR rather than writing an empty file.

자주 묻는 질문

읽는 순서와 레이아웃 유지는 무엇이 다른가요?
읽는 순서는 문단을 다시 만들어서 각 문단의 줄을 이어 붙이기 때문에 어디에나 붙여 넣을 수 있는 글이 나와요. 레이아웃 유지는 공백을 채워 페이지 모양을 지키기 때문에 고정폭으로 볼 때 단과 표, 코드가 정렬된 채로 남아요. 산문에는 읽는 순서를, 글자의 가로 위치가 의미를 가질 때는 레이아웃 유지를 쓰세요.
PDF에서 아무것도 나오지 않았어요. 왜 그런가요?
거의 확실히 스캔본이기 때문이에요. 스캔한 페이지에는 글자가 아니라 글자를 찍은 사진이 들어 있어서 추출할 텍스트 층이 없어요. 작업을 시작하기 전에 앞의 다섯 페이지를 확인하고, 없으면 멈춘 뒤 PDF OCR로 안내해요. 거기서 그림을 진짜 텍스트로 바꾸면 그다음에 추출할 수 있어요.
텍스트가 뒤죽박죽으로 나왔어요. 고칠 수 있나요?
먼저 레이아웃 유지를 써 보세요. 뒤섞인 결과는 보통 여러 단으로 된 페이지에서 줄이 단을 가로질러 이어졌다는 뜻이에요. 레이아웃 유지는 각 단을 있던 자리에 두기 때문에 읽기도 정리하기도 쉬워요. 어떤 문서는 머리글과 바닥글, 여백 주석을 읽는 순서와 무관하게 배치하기도 하는데, 그건 어떤 추출기도 더 낫게 알아낼 수 없어요.
파일을 열면 악센트가 붙은 글자가 깨져 보여요. 어떻게 하죠?
인코딩을 BOM이 있는 UTF-8로 바꾸고 다시 변환하세요. 바이트 순서 표시는 Excel과 메모장에 이 파일이 UTF-8이라고 알려 줘서, 예전 코드 페이지를 짐작하다가 악센트 글자 하나를 기호 두 개로 만드는 일을 막아요. 스크립트와 편집기, 버전 관리에는 그냥 UTF-8로 두세요.
텍스트를 뽑아내려고 문서를 업로드하나요?
아니요. PDF를 해석하고 텍스트 파일을 쓰는 일이 브라우저 안에서 이뤄지고, 어느 단계에서도 아무것도 전송되지 않아요. 문서가 계약서나 진료 기록일 때 특히 알아 둘 만한 점이에요. 변환하는 동안 개발자 도구의 네트워크 탭을 보면 확인할 수 있고, 오프라인에서도 작동해요.

관련 도구