Convert PNG to Brainfuck Code
Generate a Brainfuck program that prints your PNG as ASCII art when you run it. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
Drop an image anywhere on this page
or paste with Ctrl / ⌘ + V ·
Accepts PNG
Your PNG files never leave this tab
Convert PNG to Brainfuck Code is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, 200 photos straight off a camera means 1.6 GB uploaded, a wait in somebody's queue, and 240 MB downloaded again. Here it means 0 bytes up and 0 bytes down.
- No upload
- No file size limit
- Works offline once loaded
- Nothing stored or logged
How to use Convert PNG to Brainfuck Code
- 1. Drop in a PNG. Add the picture to encode. Simple logos and icons work best, because the program prints a text version of the picture rather than its exact pixels.
- 2. Set the art width. Choose how many characters wide the printed art should be and which characters to draw with. Wider art means a longer program, so the width stops at 120.
- 3. Copy and run the program. Paste the code into any Brainfuck interpreter with 8-bit cells. When it runs, it prints your picture as ASCII art, line by line.
When to use Convert PNG to Brainfuck Code
Convert PNG to Brainfuck Code turns your picture into ASCII art and then writes a Brainfuck program whose only job is to print that art. It uses two memory cells and small multiply loops to keep the program short. It is a novelty, made for fun and for testing.
- A novelty programming demo. Brainfuck code looks like noise. Running it and watching a recognizable logo appear in the console makes a fun moment in a talk or a stream.
- Testing a Brainfuck interpreter. You wrote an interpreter and need a long program with nested loops and output. The printed picture makes it obvious at a glance whether it ran correctly.
- An esoteric puzzle to share. Post the code on a programming forum and let others guess the picture before they run it. Only the people who execute it get to see the answer.
Examples
Self-printing logo
Input
logo.png + width 40
Output
a Brainfuck program that prints the logo as 40-column ASCII art
About the Convert PNG to Brainfuck Code tool
Convert PNG to Brainfuck Code runs as plain JavaScript in your browser tab, with no server behind it. Generate a Brainfuck program that prints your PNG as ASCII art when you run it. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's PNG Tools section, 292 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 3 settings, including Art width (characters), Characters (dark to light) and Invert (for a dark terminal); the result is redone automatically when you change one. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, there is no upload to wait for, and it is safe to use with confidential photos and documents.
Frequently asked questions
Does Convert PNG to Brainfuck Code cost anything?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Are my files uploaded to a server?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
Which files does Convert PNG to Brainfuck Code accept?
It accepts PNG images. There is no file size cap imposed by a server; very large files are limited only by your device's memory.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
Click Copy to put it on your clipboard, or Download .txt to save it as a file. Drop another image to start again.
Related tools
All PNG Tools →Create ASCII Art from PNG
Turn a PNG into plain-text ASCII art, with transparent areas left blank.
Convert PNG to HTML Canvas Code
Turn a PNG into JavaScript that redraws it on an HTML canvas, pixel for pixel.
Convert PNG to CSS Box-Shadow Art
Redraw a small PNG with one HTML element and a box-shadow per pixel.