/// GUIDES

Convert Text to PDF Online Free: 7 Ways

Convert text to PDF online free: paste text, pick Letter or A4, and get a PDF with no signup. Plus Windows, Mac, Google Docs, LibreOffice and API steps.

Founder, ASHDOCS
Published:

To convert text to PDF online free, paste it into the free ASHDOCS Markdown to PDF converter, choose Letter or A4, and convert. There's no signup and no watermark. Offline, Windows prints text to PDF from Notepad, and a Mac exports it from TextEdit.

What usually goes wrong is the line breaks: a three-line address arrives as one line, or a note that starts #1 priority turns into a headline. Below are seven ways to make the PDF and the fixes for the ones that rearrange your lines, each linked to the vendor's help page as checked on 23 October 2026.

Which text to PDF method should you use?

The free online converter suits paragraph text and needs no install. When every line break matters, as in addresses, lists or logs, use Notepad, TextEdit, Google Docs or LibreOffice, where you see each line before you export. Use the ASHDOCS API or Zapier app when the text comes out of a Zap, a Make scenario or your own app.

MethodFree?Signup or install?Line breaksBest for
ASHDOCS Markdown to PDF converterYes: 20 PDFs a day, no watermarkNeitherJoined unless you mark them (below)Paragraph text
Notepad + Microsoft Print to PDFYesNeitherShown on screen first.txt files on Windows
TextEditYesNeitherShown on screen first.txt files on a Mac
Google DocsYesGoogle accountShown on screen firstEditing the text first
LibreOffice WriterYesInstall LibreOfficeKept in a 24.2 testWhole folders
pandoc (command line)YesInstall pandoc and LaTeXJoined without hard_line_breaksScripts
ASHDOCS APITest keys free; live keys: see pricingFree accountSame rules as the converterZaps, scenarios and apps

How do I convert text to PDF online for free?

Open the free Markdown to PDF converter, paste your text (for a .txt file, open it in any editor and copy everything), choose Letter for US paper or A4 for ISO paper, and convert. The converter reads plain text as Markdown, so put a blank line between paragraphs first, or lines with no gap between them run together.

The limits are 20 PDFs a day per connection and 2 MB each.

What does Markdown change in plain text?

Plain text is valid Markdown, but a few characters at the start of a line carry meaning. The converter runs Python-Markdown with its Extra extensions, which follows the original Markdown syntax; each row below was reproduced with version 3.11.2 and Extra:

You typedThe PDF showsTo keep it as typed
Milk, Eggs and Bread on three linesMilk Eggs Bread, on one lineA blank line between them, or two spaces at the end of each line
#1 priority: call the landlordA large heading: "1 priority: call the landlord"\#1 priority: call the landlord
1986. What a great season.A numbered item: "1. What a great season."1986\. What a great season.
- call Sam after a blank line, or *urgent*A bullet point, or italics\- call Sam or \*urgent\*
Dear <client name>,Dear ,Dear &lt;client name>,
Columns lined up with spacesColumns squeezed togetherA fenced code block, which keeps the spaces (below)

The #1 priority row is the one that bites: Markdown takes it at its word and gives a to-do item the biggest type on the page. Watch the edges too: a --- on the first line starts front matter, which the converter removes; a line right above --- becomes a heading; a four-space indent prints as code.

How do I keep every line break?

For short text where every line and space matters, wrap it in a fenced code block: a line of three backticks above the text and another below it. The block keeps each line and space as typed, which suits an address.

```
Sam Rivera
42 Elm Street
Springfield, IL 62704
```

For longer text, end each line with two spaces, which Markdown turns into a line break, or use a desktop method below.

Got your text ready? Open the free Markdown to PDF converter, paste it, pick Letter or A4, and get your PDF. No signup, no watermark.

How do I convert a text file to PDF on Windows?

Open the file in Notepad, print it, and select Microsoft Print to PDF as the printer, then name and save the file in the Save Print Output As box. Microsoft says the Print to PDF utility is included in Windows 10 and Windows 11, so there's nothing to download.

Notepad prints the file name at the top of each page and the page number at the bottom unless you empty the Header and Footer boxes in File > Page Setup, which Microsoft's Notepad help says you'll redo each time, because those settings can't be saved.

How do I convert text to PDF on a Mac?

Open the file in TextEdit, choose File > Export as PDF, then name the file and save it. Set the paper size first with File > Page Setup, and choose Format > Wrap to Page if long lines should wrap at the margins.

Apple's TextEdit guide covers Export as PDF and Page Setup and Wrap to Page, and says TextEdit can't adjust print margins; Apple points you to Pages for that.

How do I convert text to PDF with Google Docs?

Open the .txt file in Google Docs (upload it to Drive first) or paste the text into a new document, then choose File > Download > PDF Document (.pdf). You need a Google account. It's the best route when you want to edit the text first.

Google lists plain text (.txt) among the files Docs can convert and PDF among its download formats. For US paper, choose File > Page setup, select Pages, change Paper size and click OK (Google's page setup steps); pageless documents don't have this setting.

How do I convert text to PDF in LibreOffice?

Open the .txt file in LibreOffice Writer and choose File > Export As > Export as PDF, or Export Directly as PDF to skip the settings dialog. It's free but needs installing, and its command line converts a whole folder of text files without opening a window:

soffice --headless --convert-to pdf *.txt

The PDFs land in the current folder unless you add --outdir, and on Windows the program is soffice.com in your install's program folder, per LibreOffice's start parameters page. In a LibreOffice 24.2 test every line of a short .txt file came through as typed, but on a machine with no locale set the PDF came out A4, so check your first PDF's page size.

Can I convert text to PDF from the command line?

Yes. LibreOffice converts with soffice --headless --convert-to pdf notes.txt, and pandoc with pandoc notes.txt -o notes.pdf, though pandoc reads .txt as Markdown, joins lines unless told otherwise, and needs a LaTeX engine for the PDF.

The pandoc manual covers LaTeX as the default PDF engine, .txt read as Markdown and the hard_line_breaks extension, which keeps every newline; papersize sets US paper:

pandoc notes.txt -f markdown+hard_line_breaks -V papersize=letter -o notes.pdf

If the run stops because lmodern.sty wasn't found, install the Latin Modern fonts, which the pandoc manual names as the default LaTeX font.

Why does my text look different in the PDF?

A .txt file holds characters and line breaks but no page size, font or margins, so whichever tool makes the PDF picks them for you. Choose Letter or A4 on purpose. Columns lined up with spaces also need a fixed-width font, and any hard line breaks in the text decide how it wraps.

A4 or Letter?

Letter is 8.5 × 11 inches and A4 is 210 × 297 mm, per the W3C page-size definitions. Letter is about 6 mm wider and A4 about 18 mm taller, so an A4 PDF printed on Letter paper gets shrunk or loses its bottom edge.

Which font will the PDF use?

Each tool picks its own default. In a proportional font an "i" is narrower than an "m", so a plain-text receipt lined up with spaces drifts out of line; a fixed-width font keeps it straight. To choose the font yourself, write HTML with CSS and use the free HTML to PDF converter, where a CSS @page size also takes priority.

Why does plain text wrap strangely?

Text copied from an email can have a hard line break every 70 to 80 characters; RFC 5322, the email standard, says a line should be no more than 78. When the page fits fewer characters per line, each line spills a word or two onto the next, leaving a ragged long, short, long, short edge. Markdown rejoins those lines, so the online converter handles hard-wrapped email text better.

How do I generate a PDF from text in Zapier or Make?

In Zapier, use the ASHDOCS app's Generate PDF action with HTML as the source and your text inside a <pre> tag. In Make, send the text as a file to the ASHDOCS Markdown to PDF API through the HTTP module; the response returns a signed PDF link for the next module to download, email or save.

The API call, which also works from your own code:

curl -X POST https://www.ashdocs.com/api/v1/tools/markdown-to-pdf \
  -H "X-API-Key: ash_test_..." \
  -F "files=@notes.md" \
  -F 'options={"format":"Letter"}'

The PDF link comes back at output_files[0].url. Test keys (ash_test_...) run the real conversion and never use credits, though plan rate limits apply; see pricing for live keys. Files are kept 24 hours, or purged within minutes of the job finishing with "retention":"zero" in options.

Zapier: the ASHDOCS app's Generate PDF action

The ASHDOCS Zapier app (public beta) has no Markdown action, but its Generate PDF action takes HTML, and a <pre> tag keeps plain text's line breaks.

  1. After your trigger, add the ASHDOCS app's Generate PDF action and connect your ASHDOCS account.
  2. Set Source to HTML and enter <pre style="white-space: pre-wrap">, your mapped text field, then </pre>. The pre-wrap value keeps every line break and still wraps long lines.
  3. Choose the Page Size, test the step, and map the PDF into the step that emails or saves it.

If the text might contain a <, replace it with &lt; first, or the renderer reads what follows as a tag. The n8n-nodes-ashdocs community node (verification pending) has the same Generate PDF operation under Document.

Make: HTTP "Make a request"

ASHDOCS has no Make app yet, so this uses Make's own HTTP app, where you name each multipart field yourself.

  1. Add HTTP > Make a request with method POST, the endpoint above, and an X-API-Key header holding your test key.
  2. Set Body content type to multipart/form-data.
  3. Add a File item named files, with notes.md as the file name and your text as the file data.
  4. Add a Text item named options with {"format":"Letter"}.
  5. Set Parse response to Yes, then add HTTP > Download a file for the link in output_files[0].url.

For page breaks and tables, read Markdown to PDF via API; text that arrives as HTML can go to the HTML to PDF API, and the PDF generation API covers HTML, Markdown and invoice templates under one key.

Get a free test key and run the request above from your Make scenario or your own code; test keys never use credits, so you can get the PDF right first.

Frequently asked questions

Is it free to convert text to PDF online?

Yes. The ASHDOCS Markdown to PDF converter is free with no signup and no watermark, for up to 20 PDFs a day from one connection and 2 MB per document. Windows and macOS can also make a PDF from text with their built-in apps.

Will my line breaks survive the conversion?

In the online converter, only if you mark them: Markdown joins lines that have no blank line between them, so add blank lines between paragraphs, end lines with two spaces, or wrap short text in a fenced code block. In Notepad, TextEdit, Google Docs and LibreOffice, check the lines on screen before you export.

Is the text I paste into the converter stored?

No. Pasted text is sent to ASHDOCS only to make the PDF and is not stored. Each PDF made is logged with the IP address, browser and file size for 30 days to stop abuse of the free tool.

Should I use A4 or Letter for a PDF?

Use Letter (8.5 × 11 inches) for US readers and A4 (210 × 297 mm) where ISO paper sizes are the norm. The ASHDOCS converter offers both, so pick one before you convert.

How do I generate PDFs from text automatically?

In Zapier, the ASHDOCS app's Generate PDF action turns text wrapped in HTML pre tags into a PDF. In Make or your own code, send the text as a file to the ASHDOCS Markdown to PDF API with your key in the X-API-Key header. Test keys never use credits, so you can build the workflow before switching to a live key.

Convert your text to PDF now: paste it, pick Letter or A4, and get your PDF. Free, with no signup and no watermark.