Choose a text file

Drop your text file here or click to select one TXT · LOG · CSV · JSON · XML · INI

Appearance

Preview

No file chosen yet.

Converted entirely in your browser, your file is not uploaded.

P

TXT to PDF, free and without upload

Turn a text file into a neatly typeset PDF. You choose font, size, page format and margins. Accented characters are read correctly even in older Windows files. The conversion runs entirely in your browser.

  • Detects UTF-8 and Windows encoding
  • No upload, everything in the browser
  • Fixed width font for source code
  • Page numbers and header available

How it works: TXT to PDF

1
P

Textdatei auswählen

Zieh die TXT-Datei in das Feld oder wähle sie über den Dateidialog. Der Inhalt erscheint sofort in der Vorschau, die erkannte Zeichenkodierung steht darüber.

2
P

Darstellung einstellen

Wähle Schrift und Größe, Seitenformat, Ausrichtung und Ränder. Für Quelltext und Protokolle die Schrift mit fester Zeichenbreite nehmen, damit Einrückungen stimmen.

3
P

PDF herunterladen

Klick auf „PDF herunterladen". Das fertige Dokument wird sofort gespeichert, ohne Wartezeit und ohne dass die Datei je hochgeladen wurde.

Text files as PDF: what matters

Why accented characters sometimes turn into question marks

A text file contains characters but no note about which table those characters should be read with. Programs therefore have to guess. Files saved by older Windows editors usually use Windows-1252, modern systems use UTF-8. If a program reads a Windows file as UTF-8, accented characters become unreadable. We first check whether the content is valid UTF-8 and fall back to Windows-1252 otherwise. The detected encoding is shown above the preview and you can switch at any time.

Fixed width for source code and logs

In source code, configuration files and server logs, indentation and columns carry meaning. In a proportional font they drift apart, because an i is narrower than an m. A fixed width font gives every character the same space, so tables and indentation stay aligned. For running text such as notes or letters, the sans serif font reads more comfortably.

Long lines and wrapping

Text files know nothing about page width. A log line can run to several hundred characters. During conversion it is therefore wrapped so that nothing gets cut off. On request a small mark at the end of the line shows that there was no real line break here and the line simply continues. If you have many long lines, choose landscape orientation and a narrow margin as well.

Which characters can be shown

The standard fonts built into PDF cover the Western European character set, including all accented letters and the euro sign. Cyrillic, Greek, Arabic, Hebrew and Asian scripts are not part of it and appear as placeholders. That is a limitation of those fonts, not of this tool. If your file contains such characters, the tool for creating a PDF from typed text is the better route.

Where this helps in everyday work

Printing log files cleanly for a support ticket, archiving notes from a plain editor, attaching source code to an exam or documentation, passing on data extracts as an unchangeable document. In all these cases something formless should become something that opens, prints and archives reliably. That is exactly what PDF was made for.

Privacy: the file stays with you

The text file is read through the browser file interface and converted into a PDF right there. No upload takes place, the content is never transferred to a server or stored. That matters especially for log files, which can contain addresses, names or credentials. Once the page has loaded, the tool even works without an internet connection.

Frequently Asked Questions

Wie wandle ich eine TXT-Datei in ein PDF um?

Zieh deine Textdatei in das Feld oder wähle sie über den Dateidialog aus. Der Inhalt erscheint sofort in der Vorschau. Stell bei Bedarf Schrift, Größe, Seitenformat und Ränder ein und klick auf „PDF herunterladen". Die Umwandlung passiert vollständig in deinem Browser, die Datei wird nicht an einen Server gesendet.

Warum werden Umlaute in meiner Datei falsch dargestellt?

Textdateien enthalten keine Angabe darüber, in welcher Zeichenkodierung sie gespeichert wurden. Ältere Dateien aus Windows-Programmen nutzen meist Windows-1252, neuere UTF-8. Wir erkennen das automatisch und zeigen die erkannte Kodierung an. Sieht der Text trotzdem falsch aus, kannst du oben manuell zwischen UTF-8, Windows-1252 und ISO 8859-15 umschalten.

Bleiben Zeilenumbrüche und Einrückungen erhalten?

Ja. Zeilenumbrüche werden übernommen, Tabulatoren in Leerzeichen umgesetzt. Für Quelltext, Konfigurationsdateien und Protokolle empfiehlt sich die Schrift mit fester Zeichenbreite, damit Einrückungen und Tabellen ausgerichtet bleiben. Zu lange Zeilen werden umbrochen, auf Wunsch mit einem Umbruchzeichen am Zeilenende.

Wie groß darf die Textdatei sein?

Da die Umwandlung im Browser läuft, begrenzt nur der Arbeitsspeicher deines Geräts. Dateien bis etwa 5 MB reine Textmenge sind unproblematisch, das entspricht mehreren tausend Seiten. Bei sehr großen Protokolldateien dauert der Aufbau der Vorschau einen Moment.

Werden meine Daten hochgeladen?

Nein. Die Datei wird im Browser gelesen und dort in ein PDF umgewandelt. Es gibt keinen Upload, dein Text verlässt dein Gerät nicht. Das Werkzeug funktioniert deshalb auch ohne Internetverbindung, sobald die Seite einmal geladen ist.

Welche Zeichen werden unterstützt?

Alle westeuropäischen Zeichen einschließlich Umlauten, Akzenten und dem Euro-Zeichen. Kyrillische, griechische, arabische und asiatische Schriftzeichen können die eingebauten PDF-Schriften nicht darstellen, sie erscheinen als Platzhalter. Für solche Texte eignet sich das Werkzeug zum Erstellen von PDF aus eingegebenem Text besser.

Kann ich Seitenzahlen und einen Dateinamen einblenden?

Ja. Beides lässt sich einschalten. Die Seitenzahl erscheint zentriert in der Fußzeile, der Dateiname als Kopfzeile auf jeder Seite. Das ist besonders bei Protokollen praktisch, die später ausgedruckt und abgeheftet werden.

Worin unterscheidet sich das Werkzeug von „PDF erstellen"?

Bei „PDF erstellen" tippst oder fügst du Text direkt ein. Hier lädst du eine fertige Datei von der Festplatte, etwa eine Notiz, ein Protokoll oder einen Quelltext. Das Ergebnis ist in beiden Fällen ein PDF, der Weg dorthin ist ein anderer.

How do you like this tool?

Your feedback helps us improve PDF Monster.

No ratings yet, be the first

Click the stars to rate

Secure. Private. In your control.

This tool runs entirely in your browser. Your file is never sent to our servers, everything is processed locally on your device. Maximum privacy, maximum speed. Learn more

  • SSL encrypted
  • GDPR compliant
  • 0 uploads, nothing leaves your device
  • Servers in Germany