# Convert TXT to PNG

Files are processed on our server, and the results are kept for a few minutes so you can download them, then deleted — whether or not you did. Free, no account, no watermark.

Results are deleted 15 minutes after the job finishes.

## API

POST the file as the raw request body to https://toolsforfree.app/api/jobs?from=txt&to=png, then

GET https://toolsforfree.app/api/jobs/{taskId}?engine={engine} until state is done,
then GET https://toolsforfree.app/api/jobs/{taskId}/output?engine={engine}&format={format}, with the taskId, engine and format the 202 answers.

Details: https://toolsforfree.app/api.md

MCP: call convert_file at https://toolsforfree.app/mcp with from "txt" and to "png".

## Options

Sent as JSON in the x-tff-options header. Bounds and allowed values are in https://toolsforfree.app/openapi.json.

- `doc`: pages, dpi

## Questions

### Does converting TXT to PNG lose quality?

Yes, in one way. The page you choose is rendered to pixels at the resolution you choose, so text and drawings that stay sharp at any size in the TXT become a fixed grid of pixels, and the other pages are left out.

### Can I convert the PNG back to TXT?

Yes, but you get pixels back, not the original page. A PDF made from a PNG only wraps its pixels, so it keeps the resolution the page was rendered at and its text can no longer be selected.

### How is a TXT made into a PNG?

In two steps, one after the other, both on our server: the TXT is made into a PDF, and that PDF into the PNG. The PDF in between never leaves the server and is deleted as soon as the second step has read it. The settings on this page are for the second step.

### What can I change about the PNG it produces?

You can choose which page to render and how finely to render the page. Leave Pages blank and the first page is rendered. Render at on Auto draws it at 150 DPI, enough for a screen; 300 or 600 DPI suit printing and make a larger file.
