TapToConvert All conversions

Home / Document Converter / TXT Converter / TXT to PNG

TXT to PNG Converter

Convert a TXT file to PNG online, free and without signing up. The conversion uses LibreOffice and MuPDF, two open-source tools, on our conversion server, and your file is deleted as soon as the PNG is ready.

Drop files hereChoose TXT files Converted on our server, then deleted right away. Up to 25 MB per file.

Add a file from a URL

The file is fetched by your browser straight from that website, not through our servers. It works when the site allows other websites to download its files.

Settings

Add files to begin.

    What happens when you convert TXT to PNG

    • The TXT is opened by LibreOffice, the open-source office suite, on our conversion server, laid out exactly as it would print, and each page is then drawn as an image by MuPDF at 150 dpi, the resolution most documents are printed at.
    • A one-page TXT gives a single PNG; a longer one comes back as a ZIP file with one PNG per page, named page-01.png, page-02.png and so on, for up to 100 pages.
    • At 150 dpi, an A4 page becomes about 1240 by 1750 pixels. The longest side is capped at 6,000 pixels.
    • PNG is lossless, so text and lines stay exactly as crisp as the page rendered them.
    • The text is set in the default font of a new document, one paragraph per line, on A4 pages.
    • Where the file uses a font our server does not have, a metric-compatible one is used instead: Carlito for Calibri, Caladea for Cambria and Liberation fonts for Arial, Times New Roman and Courier New, so lines break where they did. Unusual or decorative fonts may look different.
    • This conversion runs on our server: the file is uploaded, converted, and deleted together with the result as soon as the result has been sent back to you. Nothing is kept. Files up to 25 MB are accepted.

    How to convert TXT to PNG online

    1. Press "Choose TXT files" and select one or more files, or drag them onto the box. Files up to 25 MB each can be converted.
    2. There are no settings to choose: the converter keeps everything the target format can hold.
    3. Press "Convert to PNG". The file is uploaded to our conversion server, converted in a few seconds, and deleted together with the result as soon as the result is sent back.
    4. Save each PNG with its download button. Our server has already deleted both your TXT and the PNG by then.

    Why convert TXT to PNG?

    TXT files usually come from notes, logs, extracted text and anything that must open everywhere. People convert them to PNG to share a page as a picture: in a chat or a social post, on a website, in a presentation, or in an upload form that only accepts images. PNG opens on every phone and computer without an office program.

    How to convert TXT to PNG on Windows, Mac, iPhone and Android

    On Windows

    Open this page in Chrome, Edge or Firefox, drag your TXT files in from File Explorer, and press Convert. Each PNG is saved to your Downloads folder.

    On a Mac

    Safari, Chrome and Firefox all work. Drag the TXT files from Finder onto the drop zone and the PNG files land in Downloads.

    On iPhone and iPad

    Open the page in Safari and tap Choose TXT files. You can pick from Photos or from the Files app. The converted PNG appears in Files, in the Downloads folder; to put it in your photo library, open it there, tap Share and choose Save Image.

    On Android

    Open the page in Chrome, tap Choose TXT files and pick them from Files or your gallery. The PNG is saved to the Download folder, where any file manager can find it.

    Best settings for TXT to PNG

    There are no settings: every page is rendered at 150 dpi, the longest side is capped at 6,000 pixels, and at most the first 100 pages are converted.

    To get one page only, save just that page as its own file first, or pick the image you want out of the ZIP. For a document you will print or send, PDF keeps the text sharp at any size and selectable.

    TXT vs PNG: the differences

    TXTPNG
    Full namePlain textPortable Network Graphics
    Typedocumentimage
    Created byno single authorthe PNG Development Group
    First released19631996
    CompressionLosslessLossless
    Transparencyn/aYes
    Animationn/aNo
    Vector or rastern/aRaster
    Colourn/aup to 16 bits per channel with a full alpha channel
    What it holdscharacters only, with no formattingup to 16 bits per channel with a full alpha channel
    In a browseropens in every browser, text editor and phoneopens in every browser and image viewer
    Common usesnotes, logs, extracted text and anything that must open everywherescreenshots, logos, diagrams and anything with transparency
    MIME typetext/plainimage/png

    About TXT and PNG files

    What is a TXT file?

    A TXT file holds nothing but characters: no fonts, images or layout. Modern text files are usually UTF-8, which covers every language.

    What is a PNG file?

    PNG compresses without losing a single pixel, so screenshots and text stay razor sharp, but a photograph saved as PNG is often three to five times the size of the same photo as JPG.

    TXT to PNG not working? Common problems

    • "Files up to 25 MB can be converted." Server conversions have a size limit. Compress the images inside the file, or split it, and try again.
    • "The conversion took too long and was stopped." Very long or complex files can pass the 90 second limit. Split the file and convert the parts.
    • "This file is not really in TXT format." The converter checks every file before it runs anything, so a file of another format renamed to .txt is refused. Choose the page for its real format.

    Convert TXT to PNG from the command line

    LibreOffice and Poppler do the same on your own computer: the first command makes a PDF, the second writes one image per page.

    soffice --headless --convert-to pdf input.txt
    pdftoppm -r 150 -png input.pdf page

    Converting on your own computer keeps the file entirely local, which is worth it for very large or very sensitive documents. For everything else, the converter on this page does it without installing anything.

    TXT to PNG converter FAQ

    Will I lose quality converting TXT to PNG?

    The images are sharp enough to read on any screen: 150 dpi is the resolution most documents are printed at. PNG keeps every pixel exact. The text in an image can no longer be selected or searched.

    Why is the PNG a different size from the TXT?

    Each PNG holds a full page of pixels, so the images together are usually larger than the TXT, which stores text and drawing instructions. PNG pages of mostly text stay small; pages full of photos grow large.

    Are my TXT files uploaded?

    Yes, for this conversion. A faithful TXT to PNG conversion needs LibreOffice and MuPDF, two open-source tools, which cannot run in a browser. The file travels over an encrypted connection, is converted in a private temporary folder, and is deleted together with the PNG as soon as the result has been sent back to you. We do not keep, read or share it.

    Can I convert several TXT files to PNG at once?

    Yes. Select or drop as many files as you like; they are converted one after another and each gets its own download button.

    How do I open a PNG file?

    PNG opens in every browser and image viewer. PNG is common for screenshots, logos, diagrams and anything with transparency.

    Is this TXT to PNG converter free?

    Yes. There is no sign-up and no watermark. Because this conversion uses our server, there is a fair-use limit of 25 MB per file and a number of files per hour, which stops the service being overloaded.

    Can I convert TXT to PNG on my phone?

    Yes. It works in Safari on iPhone and iPad and in Chrome on Android. The conversion happens on our server, so it is as fast on a phone as on a computer; the PNG is saved to your Downloads folder.

    Convert TXT to other formats

    Convert other formats to PNG

    Looking for something else? Try the document converter or browse every conversion.

    Try MP4 to MP3, HEIC, merge PDF or compress video.