HTML to PDF from text or code
Paste HTML or plain text, or choose a file, and get a clean PDF. Your text never leaves your device.
How HTML to PDF works
- Paste your text or HTML into the box, or choose a .html or .txt file.
- Pick the text size and page size.
- Press “Convert to PDF”. Your PDF downloads automatically.
Tips
- Paste the HTML of a page, or just its text. Scripts and styles are ignored, so only readable text is kept.
- Use the Medium text size for normal documents, and Large for documents that will be read on a phone.
- Plain text with a blank line between paragraphs becomes separate paragraphs in the PDF.
- Check the final PDF once before sending it, especially if the text came from a web page with menus or buttons.
Privacy
Your text is converted on your own device. Nothing is uploaded or stored, and the text is cleared when you close the page.
Frequently asked questions
Does my HTML keep its design, colours and images?
No. Only the text, headings, lists and tables are kept, in a simple black-and-white layout. CSS styles, colours, pictures and bold or italic text are not copied.
Can I convert a web page?
Copy the page's HTML (or just its text) and paste it here. Some pages load their content with scripts, and that content may not be in the HTML you copy.
Is my text uploaded anywhere?
No. The text is converted inside your browser, and we never receive it.
Why do some letters show as ?
Urdu and other Arabic-script text is drawn as a picture, so the letters join correctly. That text cannot be selected or searched in the PDF. Other scripts, such as Hindi or Chinese, are not supported yet and appear as ?.
Is there a size limit?
Up to 1,000,000 characters. Longer text is cut to this limit, and you are told when that happens.
Why people choose NazarTools
Stays on your device
Files are handled by your browser. We never receive them.
No sign-up
Open the page and start. No account, no email.
Instant results
No upload queue, so results appear as soon as the work is done.
Works on mobile
Use it on a phone, tablet or computer.
No watermark
Everything you download is clean and ready to use.
Free to use
All tools cost nothing. Pick one from the menu.