본문으로 건너뛰기

HTML을 PDF로

저장한 웹 페이지나 텍스트 파일을 PDF로 변환해요.

기기에서 처리됨

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

이 도구가 하는 일

This takes a saved .html or .htm file, or a plain .txt file, and lays its content out as a PDF. Headings, paragraphs, lists, tables and links are read from the document's structure and re-flowed onto the paper you choose. CSS is not executed, so the result reads correctly and does not look identical to the page in a browser. There is no field for a web address, and that is a decision rather than an omission: fetching a page for you would mean an outbound request from a tool that promises none.

Use it on a page you have already saved: an article kept for offline reading, a receipt or booking confirmation a site would only show you in the browser, documentation you want on paper, or an export from a tool that writes HTML and nothing else.

작동 방식

  1. Save the page first. In any desktop browser, press Ctrl+S or Command+S and choose Web page, HTML only - the complete option saves a folder of assets this tool does not need.
  2. Drop the .html file onto this page. Plain .txt files work too, up to 20 files at a time.
  3. Choose the paper size, orientation and margins. Wide margins suit anything you intend to annotate by hand.
  4. Leave keep hyperlinks on so the page's links stay clickable in the PDF.
  5. Turn on page numbers for anything you plan to print and hand round.
  6. Press Convert and the PDF downloads.

The page is re-flowed from its structure, not rendered. A browser turns HTML into a picture by executing CSS - float, flex, grid, absolute positioning, media queries, web fonts - and shipping a layout engine into a browser tab to do that a second time is not a small addition. Instead the document is read as headings, paragraphs, lists, tables and links, and set with the same typography as every other conversion here. Two columns become one, and the article you wanted comes out readable.

That trade has a side effect people tend to like. Navigation, banners and sidebars are flattened into the flow along with everything else, so they arrive as plain lists and paragraphs rather than as furniture down the edge of the page. This is not reader-mode extraction and does not claim to be - text that was decoration is still text - but the article stops being a narrow column squeezed between two others.

Images are not embedded. A saved .html file usually points at its pictures rather than containing them, and going out to fetch them would be exactly the outbound request this tool exists to avoid. Text, tables, lists and links come through; pictures do not, including ones written into the file as data URIs. If the pictures are the point, save them separately and use Images to PDF.

The file is treated as hostile. A saved web page can carry script tags, inline event handlers and javascript: links, and all three are stripped in the parser before anything reaches the layout engine. Nothing in the page runs, and no link that ends up in the PDF can execute anything.

The missing URL box is worth one more sentence. To fetch a page for you, this site would have to make the request itself or route it through a proxy, and either way somebody's server learns which page you were reading. For a tool whose whole claim is that your document never leaves your device, that is not a trade worth making. Saving the page yourself takes one keystroke and keeps the request in your own browser, where it already was.

이 도구가 할 수 없는 일

  • CSS is not executed, so colours, columns, positioning and web fonts are lost. The page is re-flowed as text, tables and lists.
  • There is no URL field. Save the page to a file first; fetching it here would mean an outbound request on your behalf.
  • Images are not embedded, including ones written into the file as data URIs. Text, tables and links come through.

자주 묻는 질문

파일 대신 웹 주소를 붙여 넣을 수 있나요?
아니요. 아무도 손대지 않은 기능이 아니라 일부러 뺀 거예요. 페이지를 가져오려면 이 사이트나 중간의 CORS 프록시가 사용자를 대신해 요청을 보내야 하고, 그러면 어느 페이지를 읽고 있는지가 누군가의 서버에 알려지면서 이 도구가 하는 단 하나의 약속이 깨져요. 대신 Ctrl+S로 페이지를 저장해서 그 파일을 여기에 놓으세요.
PDF가 왜 웹 페이지처럼 보이지 않나요?
스타일시트를 실행하지 않기 때문이에요. 문서의 구조인 제목, 문단, 목록, 표, 링크를 읽어서 이 사이트 자체의 타이포그래피로 다시 배치해요. 색상과 단, 위치 지정, 웹 글꼴은 넘어오지 않아요. 남는 것은 직접 고른 용지 위에 읽기 좋게 놓인 페이지의 내용이에요.
페이지의 그림도 넘어오나요?
아니요. 이미지는 삽입되지 않아요. 저장한 .html 파일은 보통 그림을 담지 않고 참조만 하는데, 그림을 가져오려면 바깥으로 요청을 보내야 하기 때문이에요. 텍스트와 표, 목록, 링크는 모두 변환되고 그림은 빠지는데, 파일 안에 data URI로 적힌 그림도 마찬가지예요.
변환할 수 있게 웹 페이지를 어떻게 저장하나요?
Windows에서는 Ctrl+S, Mac에서는 Command+S를 누르고 전체가 아니라 웹 페이지, HTML만을 고르세요. 전체로 저장하면 이 도구가 쓰지 않는 리소스 폴더까지 만들어져요. 휴대폰에서는 브라우저 공유 메뉴에서 파일로 저장이나 다운로드 항목을 찾으세요. 그런 다음 저장한 파일을 이 페이지에 놓으세요.
페이지에 관한 정보가 어딘가로 전송되나요?
아니요. 파일은 전부 브라우저 안에서 디코딩되고 해석되고 배치돼요. URL 입력란이 없는 것도 사용자를 대신해 요청이 나가는 일이 절대 없도록 하기 위해서예요. 이 페이지가 가져오는 것은 이 사이트 자체 출처의 Noto 글꼴뿐이고, 그것도 유니코드 글꼴 삽입을 켰을 때만이에요.

관련 도구