Text to PDF

Paste your text or drop a .txt file and get a clean PDF. No sign-up, no limits, and nothing leaves your browser.

0 words · 0 characters

or
Page setup and options

Page setup

Text

Long lines

File name

.pdf

Type or paste some text first.

Why turn text into a PDF

A .txt file is the most portable thing on a computer and the least presentable. It has no page size, no margins and no fixed line length, so it looks different in every program that opens it. Notepad wraps it one way, a phone wraps it another, and a printer does something else again. Nobody can tell you how many pages it is, because it does not have pages.

Converting text to PDF settles all of that at once. A PDF has a page size, a font, margins and a line length that were decided when the file was made, and every device that opens it afterwards shows exactly the same thing. That is the entire point of the format, and it is why a PDF is what people ask for when something has to be printed, submitted, signed or filed.

There is a second reason that matters more than it sounds: a PDF is taken seriously. A .txt attachment reads as a scratch file. The same words as a PDF read as a document. When you are sending notes to a client, handing in an assignment, or attaching a log to a support ticket, the format is part of the message.

And unlike a screenshot of your text, a PDF keeps the words as words. You can still select them, copy them and search them — which is the difference between a document and a picture of one.

Upload toolsTheir server?This toolYour deviceNothing leaves your device, so there is no copy to delete.
Other converters upload your text to a server. This one builds the PDF where the text already is.

Text file vs PDF: what actually changes

A text file is a sequence of characters with no layout. A PDF is a layout with characters placed into it. Converting one to the other means deciding everything the text file never said.

This is worth understanding, because it explains every option on this page. Your .txt file does not contain a page size, a font, a font size or a margin. None of that information exists in it. So a converter cannot preserve those things — it has to invent them. What you are really choosing above is what they should be.

There are two different jobs hiding under the same search. Pasting text and uploading a .txt file feel like the same thing, and every converter we looked at treats them as one. They are not.

Text you paste has already been decoded by your browser. It arrived as characters, and whatever it is — English, Hindi, Urdu, an emoji — it is unambiguous by the time it reaches the box above.

A .txt file is just bytes, and bytes do not say which alphabet they represent. "Plain text" has never meant one thing. Notepad's "Unicode" option writes UTF-16. Its "ANSI" option writes whatever the machine's regional codepage happens to be — Windows-1252 in Western Europe, GBK on a Chinese system. A file that opens perfectly on the computer it was written on can open as a screen of nonsense on yours, and nothing in the file itself will tell you why.

That is what the encoding setting is for, and it only appears when you upload a file, because it is the only time the question exists. When a file carries a byte order mark we can read it with certainty. When it does not, we look at the bytes, make the best guess we can, and tell you plainly that we guessed — so you can check the preview and correct it in one click instead of downloading a broken PDF and wondering.

The other thing a text file does not carry is any notion of a long line. A line in a log file can be four hundred characters. A PDF page is about ninety. Something has to give, and which way it gives is your call rather than ours: wrap the line so all of it is readable, or keep it on one line the way the original had it. Both are right for different files, which is why both are offered.

C4 E3 BA C3CA C0 BD E7Same bytesÄãºÃÊÀ½çWrong codec你好世界Right codec
The same bytes read two ways. A .txt file does not record which alphabet it holds, so the decoder has to be right.

How to convert text to PDF

Two ways in, depending on whether your text is already in a file. Both run entirely in this browser tab.

Paste text.txt fileOne PDF
Two ways in: paste your text, or drop a .txt file. Both produce the same PDF.
1

Paste your text, or drop a file

Type or paste straight into the box — that is the fastest route and needs no file at all. If your text is already saved as .txt, .log, .md or .csv, drop it onto the area underneath instead and we will read it in.

2

Set up the page

Choose A4, Letter or Legal, portrait or landscape, and how much margin you want. Pick a font and a size. For logs, code or anything where columns need to line up, choose Monospace and turn off wrapping.

3

Check the count, then convert

The word, character and page counts update as you type, so you know roughly what you are getting before you press anything. Name the file if you want something other than document.pdf, then press Convert to PDF.

4

Download it

The PDF is built in your browser and handed straight to you. Nothing was uploaded at any point, so there is no server copy to delete and no queue to wait in.

Going the other way? If what you actually have is a PDF and you want the words out of it, that is the opposite job — use our PDF to Text tool.

What this converter does

It converts text to PDF in your browser, with the page set up the way you want it, and it does not ask you for anything in return. There is no account, no email, no daily limit and no watermark. Several of the tools ranking for this search will let you convert two files a day, or stop you after a few attempts and ask you to register. This one does not count.

Both inputs are first-class. You can paste, or you can upload a file — you do not have to save your text out to a file first just because a converter expects one.

Page setup is real, not decorative. A4, Letter and Legal, portrait or landscape, three margin widths, three font families and font sizes from 8 to 18 point. A4 is the default because most of the people who search for this are not in the United States.

Monospace and no-wrap exist for a specific kind of file. Logs, config files, source code and anything with columns are unreadable in a proportional font and worse when the lines are rewrapped. Choose Monospace, turn wrapping off, and the file comes out looking like the file. If any line runs past the margin, we count those lines and tell you how many — we do not quietly cut them and say nothing.

Indentation is kept. Tabs become spaces and leading whitespace survives, which matters for exactly the same files.

Non-Latin text is handled properly rather than approximately. Hindi, Bengali, Urdu, Arabic, Russian, Polish, Turkish and more will come out as themselves, with the right font embedded automatically and only when your text needs it — English-only text costs no extra download at all. Where there is a limitation, you will read about it on this page rather than discover it afterwards.

People use this for:

  • Notes and drafts that need to be sent or printed
  • Assignments and applications that must be submitted as PDF
  • Server logs and error output attached to a support ticket
  • Source code and config files kept as a readable record
  • Chat and message exports saved for a record
  • Meeting minutes, lists and plain reports
  • Anything written in Notepad that has to look like a document

Works on any device

It runs in the browser, so there is nothing to install and no difference between platforms.

§ 01

Windows

Convert anything written in Notepad, including files saved as "Unicode" or "ANSI" — we work out the encoding for you.

§ 02

Mac

Works in Safari, Chrome and Firefox. TextEdit files saved as plain text convert directly.

§ 03

iPhone and iPad

Paste from Notes or Messages straight into the box. No app to install.

§ 04

Android

Paste from any app. Keyboards for Hindi, Bengali, Urdu and other scripts work as they do anywhere else.

§ 05

Linux

Paste terminal output or drop a log file in. Monospace and no-wrap keep it legible.

§ 06

Chromebook

Runs locally in the browser, which is the only place anything runs on a Chromebook anyway.

Will your language come out right?

This is the question nobody answers, so here is the honest version. The standard fonts built into every PDF cover Western European letters and nothing else. Everything beyond that needs a real font embedded into the file, and for some writing systems that brings a trade-off worth knowing about before you press the button.

DisplaysCopy/searchHelloLatin textSearch varies
Latin text copies back exactly. Devanagari displays correctly, but shaping reorders it, so copy and search may not be exact.
Your textDisplays correctlyCopy and searchExtra download
English and Western European — including the curly quotes, dashes and euro signs that come with anything pasted out of WordYesExactNone
Polish, Czech, Turkish, Russian, Ukrainian, Greek and other Latin or Cyrillic alphabetsYesExactA font is embedded
Hindi, Marathi, Nepali, Bengali, Urdu, Arabic, PersianYesMay be out of orderA font is embedded
Chinese, Japanese, KoreanYesExactLarge — we ask first
EmojiNo — we stop and name them

Why Indic and Arabic text can be searchable but not exactly

In scripts like Devanagari and Arabic, letters change shape and change places depending on what is next to them. A vowel mark that belongs after a consonant is drawn before it; separate letters join into a single shape. Getting this right is called shaping, and without it the text is simply wrong — the misplaced matras and broken half-characters people complain about in other converters. We do it. The catch is that the PDF records the order the letters were drawn in, not the order they were typed in, so when you later select or search that text it can come back rearranged. The document looks right, prints right and reads right. It is the invisible copy underneath that may be out of order. We would rather tell you that than let you find out in six months when a search turns up nothing.

How to check it yourself, on any converter

Open the finished PDF, select a line of text, copy it, and paste it somewhere plain. If what comes back matches what you typed, the text layer is sound. If it comes back scrambled, or as boxes, the file is a picture of your words as far as searching is concerned. This test takes ten seconds and works on any tool, including this one.

Your text never leaves your browser

Everything on this page happens on your own device. The text you paste is not sent anywhere, the file you drop in is not uploaded, and the PDF is assembled in this tab and handed straight to you. There is no server copy, which means there is nothing to delete in an hour, or in eight hours, or in twenty-four — the deletion promises other converters make only exist because they took your file in the first place.

This matters more here than on most tools. People paste things into a text box that they would think twice about uploading: a draft resignation letter, a set of credentials, a medical note, a private message thread. The four highest-ranking converters for this search say nothing at all about where your text goes.

The only thing that is ever fetched from the network is a font file, and only when your text uses a writing system the standard PDF fonts do not cover. Your text is not part of that request — we ask for a font, not for anything about you.

§ 01

No upload

Text and files are processed in your browser.

§ 02

No account

No sign-up, no email, no daily limit.

§ 03

No watermark

The PDF is yours, unmarked.

§ 04

No stored copy

Nothing to retain, because nothing arrives.

Frequently asked questions

Is this text to PDF converter really free?
Yes, with no catch worth hiding. There is no account, no email, no daily file limit and no watermark, and we do not stop you after a couple of attempts. This is unusual for this particular search: some of the best-ranking tools for it cap you at two files a day, and others let you convert a few times before asking you to register.
Do I need to upload my text anywhere?
No. The conversion runs in your browser using your own device. Text you paste is never transmitted, and a .txt file you drop in is read locally rather than uploaded. Nothing is stored on a server, so there is no retention period and nothing to delete.
What is the difference between pasting text and uploading a .txt file?
Pasting is simpler and has no ambiguity — your browser has already decoded the characters. A file is raw bytes, and those bytes do not record which encoding they use, so it has to be worked out. That is the only real difference, and it is why the encoding setting appears only for uploads. If you have the text on your clipboard, pasting is the more reliable route.
Will Hindi, Urdu or Bengali text convert correctly?
The letters will come out right. We embed a proper font and shape the text, so matras sit where they belong and joined forms join — which is more than many converters manage. There is one honest caveat: because these scripts are reordered when they are drawn, the copy of the text stored inside the PDF can come back in a different order when you select or search it. The document displays, prints and reads correctly. If being able to search the finished PDF matters to you, test it first by copying a line out.
Can I search and copy the text in the PDF afterwards?
Yes — this produces real text, not a picture of text. For English and other Latin and Cyrillic alphabets, what you copy out matches what you typed in exactly. For Devanagari, Bengali, Arabic and Urdu, the order may not be exact, for the reason explained above. To check any PDF from any tool: select a line, copy it, paste it somewhere plain, and see whether it matches.
Why will my emoji not convert?
Emoji are colour images rather than letters, and the fonts that carry them cannot be embedded in a PDF this way. Rather than silently replacing them with blank boxes or question marks, we stop, tell you exactly which characters they are and which line each one is on, and let you decide. One click removes them and converts the rest. This comes up most often with exported chats and message threads.
My .txt file came out as garbled characters — what happened?
The file was read with the wrong encoding. It usually means the file was saved on a system using a different regional codepage than the one we guessed. Use the encoding dropdown to switch between UTF-8, UTF-16, Windows-1252, GBK and the others — the preview updates immediately, so pick the one that makes the text readable and then convert.
Can I convert a text file made in Notepad on Windows?
Yes, including the awkward ones. Notepad's "Unicode" option saves UTF-16, and its "ANSI" option saves your system's regional codepage — neither is UTF-8, and both trip up converters that assume it. We detect the encoding from the file where we can and guess carefully where we cannot, and you can override it either way.
How do I stop long lines from being wrapped?
Set "Long lines" to "Keep on one line". This is what you want for logs, source code and anything with aligned columns, where rewrapping destroys the structure. Pair it with the Monospace font. Anything that then runs past the margin is cut — and we count those lines and tell you how many, so you can widen the margins, drop the font size or switch to landscape.
Is there a limit on how much text I can convert?
There is no page limit and no daily limit. Uploaded files are capped at 20 MB, which is far more plain text than it sounds — tens of thousands of pages. Very long documents take a few seconds to lay out because the work happens on your own device rather than on a server.
Can I choose the page size and the font?
Yes. A4, Letter or Legal; portrait or landscape; narrow, normal or wide margins; sans serif, serif or monospace; and any size from 8 to 18 point. A4 and 11 point are the defaults. You can also name the output file rather than accepting document.pdf.
How do I convert a PDF back to text?
That is the opposite job and it has its own tool — our PDF to Text converter pulls the text layer out of a PDF and hands it back as plain text. It runs in your browser too.

Turn your text into a PDF

Paste it in or drop a file. Free, unlimited, and it never leaves your browser.

Convert text to PDF