โ‘  Select Source Format
TXT
HTML
CSV
Markdown
RTF
JSON
โ‘ก Input Content
๐Ÿ“

Upload file or click

โ€” or paste directly below โ€”

โ‘ข Preview

Your formatted content will appear here

Advertisement
What does this document converter do? This document converter turns six kinds of plain content into a PDF: TXT, HTML, CSV, Markdown, RTF and JSON. You paste text or upload a file, check a preview, choose A4 or Letter, a font and a size, then download. It captures the preview as an image, so the PDF text cannot be selected. It does not read Word files.

What does this document converter do?

Sometimes you have a text file, a CSV export or a README and you just need a PDF you can attach to an email. This document converter does that for six source formats: TXT, HTML, CSV, Markdown, RTF and JSON. You pick the format tab, upload a file or paste the content, and a preview box shows how it will look.

Under the hood the tool renders your content into a hidden block as wide as the printable page area, takes a picture of it with the html2canvas library, and places the picture on pages with jsPDF. That has consequences you should know about. The PDF is made of page images, so you cannot select or search the text, and file sizes can be larger than a text-based PDF. Long content runs onto extra pages with 15 mm margins, and the page breaks are placed between lines or blocks where possible.

It is a simple converter, not a full word processor. It does not open DOC or DOCX files, it uses a basic comma split for CSV and a rough text extraction for RTF. For Word files, see Word to PDF. For small, tidy documents it is quick and needs no account.

How to convert a file to PDF here

  1. Choose the source format with the tabs under Select Source Format: TXT, HTML, CSV, Markdown, RTF or JSON.
  2. In Input Content, click the upload box to pick a file of that type, or paste your content into the text area. Both fill the same box.
  3. Set Page to A4 or Letter, Font to Arial, Georgia, Courier New or Times, and Font Size from 10 to 14 pt.
  4. Type a Filename without the extension. The tool adds .pdf.
  5. Look at the Preview and scroll it to confirm the content is complete and formatted as expected.
  6. Click Convert & Download PDF. Open the saved file and check every page.

What this document converter includes

Six input formats

TXT keeps line breaks, HTML is rendered, CSV becomes a bordered table with a header row, Markdown is rendered with the marked library, RTF is reduced to plain text and JSON is pretty-printed.

Upload or paste

Upload a file with the format's usual extension, or paste directly. The preview updates as you type.

Live preview

The preview box applies your chosen font and size so you can see the layout before you convert.

Page size choice

Pick A4 or Letter. The content is split into as many pages as it needs, with 15 mm margins.

Font and size controls

Four fonts and four sizes from 10 pt to 14 pt apply to both the preview and the PDF.

Custom file name

The Filename box sets the name of the download, with .pdf added automatically.

Who uses it, and for what

  • Developers sharing a README. Paste Markdown with headings, lists and code blocks, and send a PDF to a client who does not use GitHub. For writing it first, try the Markdown Editor.
  • Analysts sending a small data export. Paste a CSV of a few dozen rows and get a bordered table in a PDF. For larger sets, a spreadsheet will serve better.
  • Support teams attaching logs. Convert a plain-text error log or meeting notes to PDF so it opens the same on any device.
  • Anyone with an API response. Paste JSON and get an indented, readable copy to attach to a ticket. You can tidy it first in the JSON Formatter.

Tips for better PDFs

  • Pick the right format tab before you paste. If you leave TXT selected and paste HTML, you will see the tags as text.
  • For CSV, avoid commas inside quoted cells. The parser splits on every comma, so "Smith, John" becomes two columns.
  • Convert RTF only for simple text. The tool strips the formatting codes and gives you plain text, with no bold, images or tables.
  • Open the finished PDF and scroll through the pages. Long content continues on new pages, and breaks fall between lines or blocks, but a single very tall image or table row can still be split.
  • If the file is large because pages are images, run it through PDF Compress.
  • For a Word file, use the Word to PDF tool. This one does not read DOC or DOCX.

Is it safe? Privacy and limits

Your text or file is read in your browser and turned into a PDF on your device. Nothing is uploaded by this page. The html2canvas, jsPDF and marked libraries load from public CDNs. Pasted HTML, and the HTML produced from Markdown, is cleaned before it is shown: scripts, styles, frames, forms and event handlers are removed. Still, only paste markup you trust. The output is an image-based PDF, so it is not suitable where searchable or accessible text is required.

Document converter FAQ

Six: TXT, HTML, CSV, Markdown, RTF and JSON. You choose the type with the tabs at the top, then upload a file with a matching extension or paste the content. It does not accept DOC, DOCX, ODT, XLSX or images, even though the page name suggests a wider range. For Word documents, use the Word to PDF tool, and for pictures use JPG to PDF. Each tab handles its format in its own way, so the preview is worth checking before you download.

No. The tool takes a picture of the preview box with html2canvas and places that picture on the PDF pages as JPEG images. The result looks right but contains no real text layer, so you cannot select, copy or search words in it, and screen readers cannot read it. File sizes are also larger than for a text-based PDF. If you need searchable text, produce the PDF from a word processor or from your browser's Print to PDF option instead.

The tool renders the whole document, not just the scrolling preview, and cuts it into pages with 15 mm margins. Page breaks are placed between lines, paragraphs, list items and table rows where possible, so text is not sliced through the middle. A single block that is taller than a page, such as a huge image, can still be cut. Scroll through the downloaded PDF to check. If you need selectable text, use your browser's Print to PDF option instead.

It treats the first line as a header row and every other line as a data row. Lines are split at newline characters and cells at commas. Surrounding double quotes are removed. It does not understand commas inside quoted cells, so a value like "Smith, John" will be split into two columns, and it does not handle line breaks inside a cell or semicolon-separated files. For messy data, clean it in a spreadsheet first, or use CSV to HTML Table to check how it reads.

For RTF, it removes the formatting codes and braces with a simple pattern match and shows the remaining text as one block. Bold, images, tables and page layout are lost, and some control text may leak through. For JSON, it parses your input and prints it indented with two spaces in a code block. If the JSON is invalid, the preview shows the words Invalid JSON, and that message is what would end up in the PDF if you convert anyway.

Close to it. The content is laid out in a block as wide as the printable area (page width minus 15 mm margins on each side) at the font and size you choose, then captured as an image and placed at the same width, so 11 pt text comes out at roughly 11 pt on paper. Because the pages are images, tiny differences in how your browser renders fonts can show. Check the PDF before you print it.

The tool removes scripts, style blocks, frames, forms and inline event handlers, and blocks javascript: links, before it puts HTML or Markdown output into the page. Basic formatting, links, images and tables are kept. Even so, paste only content you trust, and your file is not uploaded anywhere. If a source is unknown, view it in a text editor first, or paste it as TXT so it is shown as plain text. Note that the cleaning also removes style blocks, so a styled HTML page may look plainer in the PDF.

It is free, with no account and no watermark. The code sets no file size limit, but everything is processed in your browser memory, so very long documents can be slow or fail on a phone. Image-based pages also make large PDFs, which you can shrink with PDF Compress. Only one document is converted at a time. The upload box filters by extension for each format tab, for example .md or .markdown for Markdown.

If you need the exact look of a live page, use your browser's Print option and choose Save as PDF, which keeps selectable text. This converter is for content you have as text, CSV, JSON, Markdown or an HTML snippet, and you want a quick, clean copy. If you only want a picture of a section of a page rather than a PDF, the HTML to Image tool is a closer fit.

Advertisement