TXT to JPG Converter

Draw a plain-text file as a JPG: dark text on white, long lines wrapped to the page.

or drop files here

TX

TXT Format

Plain text file

A file that holds unformatted text with no fonts, styles or images. Any text editor on any operating system can read it.

  • No formatting
  • Character encoding such as UTF-8
  • Very small files
  • Media type text/plain
JP

JPG Format

JPEG image

A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.

  • Lossy compression
  • Adjustable quality
  • No alpha transparency
  • Supported everywhere

How to convert TXT to JPG

Follow these steps to convert TXT to JPG online.

    1

    Choose your TXT file, or several at once.

    2

    Wait while the converter turns each file into JPG.

    3

    Download each new JPG file. Your original file isn't changed.

Related Tools

JPG to TXT

Convert JPG to TXT format

TXT to JPEG

Convert TXT to JPEG: your text drawn as an image in your browser, long lines wrapped, in a font for Latin, Greek, Cyrillic, Hebrew and Arabic. A very long text is cut at 4,096 px, and the image says where.

TXT to PDF

Convert TXT to PDF in your browser: your text on A4 pages, long lines wrapped, blank lines and indentation kept, in Courier or, when the text needs it, a font for Greek, Cyrillic, Hebrew and Arabic.

TXT to PNG

Convert TXT to PNG: your text drawn as an image in your browser, long lines wrapped, in a font for Latin, Greek, Cyrillic, Hebrew and Arabic. A very long text is cut at 4,096 px, and the image says where.

TXT to SVG

Convert TXT to SVG: an SVG holding a picture of your text, so the text isn't editable. Long lines wrap, and a very long text is cut at 4,096 px, with the image saying where.

AI to JPG

Convert AI images to JPG format

DCM to JPG

Convert DCM to JPG format

DNG to JPG

Convert Adobe DNG to JPG

HEIF to JPG

Convert HEIF images to JPG format

ICNS to JPG

Convert ICNS to JPG format

ICO to JPG

Convert ICO files to JPG format

JFIF to JPG

Convert JFIF to JPG format

JIF to JPG

Convert JIF to JPG format

NEF to JPG

Convert NEF to JPG format

ORF to JPG

Convert ORF to JPG format

PCX to JPG

Convert PCX to JPG format

PDF to JPG

Convert PDF pages to JPG images

PPTX to JPG

Convert PPTX to JPG: a JPG of each slide of your PowerPoint file, drawn in your browser. Hidden slides and speaker notes aren't included, and video and linked pictures aren't drawn.

SVG to JPG

Convert SVG files to JPG format

TGA to JPG

Convert TGA images to JPG format

TIF to JPG

Convert TIF images to JPG format

XCF to JPG

Convert XCF to JPG format

XLS to JPG

Convert XLS to JPG format

XLSX to JPG

Convert XLSX to JPG: a picture of each sheet's cells, numbers and dates as Excel shows them, the first row as the header. Hidden sheets, rows and columns, charts and pictures aren't drawn.

What to know before converting TXT to JPG

  • The page draws dark DejaVu Sans text on white. There is no font, size or color setting.
  • Lines wrap at about 90 characters. About 168 wrapped lines fit before the text is cut.
  • A cut text ends with a line in the image saying where it stops, and the page shows the same notice.
  • The JPG is saved at quality 0.85. It is a picture, so the text cannot be selected.
  • Each text file gives its own JPG.

About TXT files

What is a TXT file?

Nothing but characters are held in a TXT file. There are no typographic commands in it, and it dictates no page layout, typeface or placement of pictures, so any editor on any operating system can read it. Its MIME label is text/plain, and the charset parameter tells a receiver how the bytes map to characters.

A styled document turns into plain text when it is saved as TXT, since TextEdit strips the styles and formatting when it converts rich text. What the characters look like is decided by whoever opens the file, not by the file.

Programs that open TXT files

Windows, Mac and Linux

  • Visual Studio Code: a code editor that opens text files and lets you edit them.
  • Vim: a text editor with Windows builds and documented Unix and macOS use.

Mac

  • TextEdit: the Mac editor that works with plain text documents.

TXT and JPG compared

  • What they store: a TXT stores characters and line breaks. A JPG stores a grid of pixels, compressed with some loss, with an adjustable quality setting and no alpha transparency.
  • Look: a TXT has no typeface of its own. A JPG fixes one, because the letters are already drawn into the picture.
  • Editing: text in a TXT can be searched, copied and edited. Text in a JPG cannot be selected.
  • Support: a TXT opens in any text editor, and a JPG is supported everywhere, so the picture is the safer choice when a destination takes only images.
  • Origin: the Joint Photographic Experts Group defined JPG (ISO/IEC 10918-1) for photographs. The endings .jpg and .jpeg mean the same format.

Here is what the page does with your file. It decodes the bytes, drops terminal color codes and control characters, and turns each tab into spaces at stops every four characters. The text is then drawn on a canvas in your browser as dark text on white in DejaVu Sans. Lines that run long are folded at word breaks, and a single word wider than the page is cut. The picture is drawn at twice its size whenever it stays within 4,096 pixels a side, and the finished canvas is saved as a JPG at 0.85 quality. A text longer than one picture holds is cut, the last line of the picture says where, and the page shows the same notice. Your original TXT is not changed.

Other ways to convert TXT to JPG

  • GIMP: create an image and choose the Text tool. Turn on the editor window ("Use editor window") and load the TXT file with the folder icon in the text editor. Pick the font and size, drag a frame so the text fits, then use File > Export As and choose JPEG. GIMP puts the text on a new layer, and the size control offers several units. Check that no text runs off the canvas.
  • ImageMagick: run magick -background white -fill black -pointsize 24 -size 800x caption:@notes.txt notes-card.jpg. The caption: operator word-wraps long lines to the width you give with -size, and -font picks a typeface. The -pointsize option really controls the spacing between lines, newlines in the file act as paragraph separators, and -size is required so the wrapping has a width. A security policy can block reading text from a file.
  • Pillow (Python): read the TXT with the right encoding, create a canvas with Image.new (its default color is black, so pass white), draw the lines with ImageDraw.multiline_text and a font, and call save with a .jpg name. Text containing newlines passed to ImageDraw.text is handed to multiline_text, and drawing changes the image in place. You decide the size, wrapping and page breaks.

Problems with TXT files

  • Accented letters look odd: a file read with the wrong encoding shows valid characters as the wrong ones. Re-save it as UTF-8.
  • Formatting disappeared: a styled document saved as TXT loses its styling.
  • A table or image is missing: plain text cannot preserve an image or table as a word processor would.
  • The text is very long: a picture ends at 4,096 pixels, so a long log or manuscript is cut. Split the text into smaller files.
  • The converter reports an empty file: a file with nothing but spaces and control characters leaves nothing to draw. Open it in an editor and check that the text is really there.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert TXT to JPG?

What does the JPG look like?

Can I choose the font, size or colors?

How long can my text be?

Do long lines wrap?

Which languages and encodings work?

What happens to tabs and blank lines?

Why is the text a little fuzzy around the letters?

Can I select or copy the text in the JPG?

Why does it say my text file is empty?