File Converter
A small text-first converter: load a TXT, HTML or Markdown file, tidy the text if you like, and download it as PDF, plain text or a basic HTML page.
Most "file converters" promise to turn anything into anything. This one makes a narrower promise and keeps it: it reads a text-based file as text and writes that text out in one of three forms. That honesty is useful, because it tells you in advance what you will get. If you need pixel-perfect rendering of a web page or a formatted Markdown document, this is the wrong tool. If you need a quick, readable PDF of some notes, a clean .txt copy, or a minimal HTML wrapper around a block of text, it does the job in seconds.
What the converter does and does not do
When you choose a file, its contents are read as plain text and placed in an editable preview box. Whatever is in that box when you press the button is what gets converted, so you can fix typos or delete a paragraph before exporting. The tool accepts files ending in .txt, .html, .htm, .md and .markdown.
Important: HTML and Markdown are not interpreted. An HTML file arrives as its raw tags, and a Markdown file arrives with its asterisks, hashes and backticks intact. The output carries those characters through unchanged. If you want rendered headings, bold text, tables or images in a PDF, open the page in a browser and use its Print command, then choose Save as PDF.
Step-by-step
- Click the upload area labelled Click or drag a file and select your TXT, HTML or Markdown file.
- Check the File Content Preview / Edit box. Edit anything you want to change; nothing is saved back to your original file.
- Open the Convert To menu and choose PDF, Plain Text (.txt) or HTML (.html).
- Click Convert & Download. The file is saved by your browser as
converted.pdf,converted.txtorconverted.html.
The three output formats compared
| Format | What you receive | Best for |
|---|---|---|
| A4 pages in 11-point Helvetica with 50-point side margins, black text, automatic line wrapping and page breaks. | Sharing notes, logs or drafts in a format that opens everywhere. | |
| Plain Text (.txt) | The exact text from the preview box, saved as-is. | Saving your edited version, or stripping a file back to bare text. |
| HTML (.html) | A small web page whose body is your text inside a preformatted block. Characters such as < and & are escaped so they display literally. | Publishing text quickly, or viewing source code as a page. |
Understanding the PDF output
The PDF uses a standard built-in font rather than embedding one, which keeps the file tiny but limits the characters it can show. Letters outside the Latin character set, such as Bengali, Arabic, Chinese or most emoji, cannot be drawn with that font and are replaced with a question mark. The tool then reports how many characters were replaced, so you know whether the result is faithful. If your text is not in a Latin script, convert to .txt or .html instead, because those keep every character exactly.
Long words that are wider than a line, such as a pasted URL, are split across lines instead of running off the page. Blank lines in your text become blank lines in the PDF, and tabs are expanded to four spaces. Because the layout is fixed, you cannot change margins, font size or paper size here.
Practical uses
- Turn meeting notes saved as .txt into a PDF you can attach to an email.
- Print a log file or configuration snippet in a form that does not depend on a text editor.
- Remove formatting from a Markdown file by exporting it as .txt after deleting the symbols you do not want.
- Wrap a short block of plain text in a minimal web page so you can send it as a link or open it in any browser.
- Preview what an HTML file's raw source looks like on paper, tags included, for a code review or a classroom handout.
Tips for cleaner results
Because the preview box is editable, use it as a last proofreading pass. Delete stray front matter from a Markdown file, remove navigation text you copied from a web page, and break very long paragraphs where you want pauses. Keep an eye on file encoding: the file is read as standard text, so a file saved in an unusual encoding may show odd characters in the preview. If that happens, re-save the file as UTF-8 in your text editor and load it again.
If you only have a few lines to convert, you do not need a file at all: paste your text into the TXT to PDF tool on this site instead. And if what you actually need is a PDF of a formatted page, remember that the browser's own Print to PDF feature preserves styling that this converter intentionally does not attempt.
Privacy
The file is read and converted by your own browser. The text you load is not posted to a server by this tool. The PDF output uses a PDF-writing library that your browser downloads from a public content-delivery network the first time you export a PDF, so you need an internet connection for that step.
Frequently asked questions
Can it convert a Word or Excel file?
No. The input must be a text-based file: TXT, HTML or Markdown. Word and Excel files are binary formats and would not display as readable text.
Why does my Markdown PDF show symbols like ## and **?
The converter treats Markdown as plain text and does not render it. Those symbols are part of the file's content and are carried through unchanged.
Why did some characters become question marks?
The PDF uses a basic Latin font. Characters outside that set cannot be drawn, so they are replaced. Use the .txt or .html output to keep them.
Do my edits change the original file?
No. Edits happen only in the preview box, and the original file on your device is never modified.
Is there a file size limit?
The tool sets no explicit limit, but very large files can make the preview box slow because everything is held in browser memory. Split huge files first.