Meme Generator
Operator: Abdulla Al Fahad. How tools are built and checked
A meme works when the words sit where the eye expects them: capitals across the top and bottom of a picture, or a plain strip of text above it. This generator puts either layout on a picture you supply. There is no library of templates to choose from, so the picture is the one you took, drew or downloaded, and the words are your own.
Two layouts are offered. Top and bottom text is the classic white outlined style. The caption bar adds a white strip above the picture with dark text on it, which suits a screenshot or a photo with a line you want to state plainly. Extra text boxes can be placed anywhere on the picture for a third line or a label, and each one can be dragged.
Key features
- Top and bottom text in the classic outlined style, or a white caption bar above the picture
- Up to 12 extra text boxes, each dragged into place and given its own width
- Automatic fitting of text size to its width and height, or a manual size in pixels
- Outline colour and width, text colour, left, centre or right alignment and an all-capitals switch for each block
- Save as JPG or PNG at the picture's size, with the picture's own longest side capped at 4096 pixels (the caption bar is not counted)
- Previews that match the saved file, drawn by the same code at a smaller scale
Outlined captions, caption bars and text fitting
Input is a PNG, JPG, WEBP or GIF up to 25 MB and 50 megapixels. Files are accepted by the format their header declares, not by extension, so a mislabelled file is judged by what it holds. A GIF is opened at its first frame only and saved as a still image; animated output is not produced. HEIC files are refused with a request to export them as JPG.
Classic text is white with a black outline by default, set in capitals, using the font stack Impact, then Arial Black, then the generic sans-serif. These are installed system fonts and nothing is downloaded, so a machine without Impact shows Arial Black instead. The outline is a percentage of the letter size, from none to 20 percent, and the default is 5. Caption text is dark grey on white in Helvetica or Arial, not capitals by default.
Each text block can be fitted automatically or set to a manual size in source-image pixels. Automatic fitting keeps every word whole, wraps the rest onto new lines, and finds the largest size that still fits the width and the allowed height. Top and bottom text may take up to about 30 percent of the picture's height. A word too wide for its box is split between letters. A block that still does not fit is flagged with an amber note below the preview, naming the block and whether it was at its smallest automatic size or at its manual size.
The download is the picture's own size, so an 800 by 600 photo with no caption saves as 800 by 600. A caption bar makes the file taller by the bar's height, which follows the caption's length and size, so the saved height is the picture's height plus that bar. Pictures whose own longest side is above 4096 pixels are scaled down so that side is 4096; the caption bar is not counted toward that limit, so a 4000 by 4000 picture keeps its full size even with a caption, and the page states the new size when scaling applies. A JPG download is flattened onto white, because JPG has no transparency; a PNG download keeps the transparent areas of a transparent picture. No watermark is added in either format.
How it works
Fitting uses a binary search over whole pixel sizes. The text is wrapped at each candidate size and the size is kept if the wrapped lines fit the width without splitting a word and their total height fits the box. A bigger size never fits in fewer lines than a smaller one, so the largest size that works is found in a handful of steps. Each measurement adds twice the outline width, so the outline cannot run past the edge.
Measuring uses the browser's own text metrics at the chosen font, so the wrapping you see is the wrapping that gets saved. The layout is worked out first in picture pixels and the export draws that same layout at a scale of 1 or less, so text stays in the same place relative to the picture at every size.
A caption bar is sized from its text. The caption's font size tops out at 7 percent of the picture's width, and the bar is the text's height plus padding of 4 percent of the width on each side. Typing a longer caption therefore makes the bar taller, and clearing the caption leaves a one-line bar so the picture does not jump while you type.
Typical uses
- Putting a one-line caption on a photo of your own dog, with the classic capitals, to post in a family group chat
- Adding a caption bar above a screenshot of a surprising product page for a team channel
- Labelling a diagram or a photo with two or three short lines in different places before printing a sheet
- Making a quick joke image from a picture you took yourself, without signing up or leaving a watermark on it
Building one
- Choose a picture, or drop one onto the box. A GIF will be made into a still meme from its first frame.
- Pick Top and bottom, and type the words in the two boxes. Leave All capitals on for the classic look.
- For a caption, pick Caption bar and type one or two sentences into the Caption box.
- Add a text box for a third line, drag it onto the picture, and use the width slider to set where its lines wrap.
- Select a block in the Text style for list to change its colour, outline or alignment, or to set a manual size.
- Choose JPG or PNG and press Download meme. The status line gives the saved size.
Example
Three runs: an 800 by 600 picture in classic style, the same picture with a caption bar, and a 6000 by 3000 picture
Run 1 (classic) top "one does not simply", bottom "export a meme without a watermark", capitals on, size auto
Run 2 (caption) "when the meme maker runs entirely in your browser tab", size auto
Run 3 (classic) 6000 x 3000 picture, top and bottom text as in Run 1What each run saves
Run 1, 800 x 600 picture
saved size 800 x 600, no caption bar
font size fitted automatically to the width less a margin
Run 2, 800 x 600 picture
saved size 800 x (600 + caption bar height)
bar the caption's height plus 4% of the width as padding on each side
Run 3, 6000 x 3000 picture
scale 4096 / 6000 = 0.6827
saved size 4096 x 2048Tips for best results
- Keep the classic words short. Automatic fitting shrinks long text to make it fit, so a long sentence ends up in a much smaller size than a short one and can become hard to read on a phone.
- Use the caption bar for anything that is a full sentence. Dark text on white stays readable on any picture, while white text over a bright sky or a white wall does not.
- To keep a classic meme readable on a dark or busy picture, raise the outline to 8 or 10 percent rather than changing the text colour.
- Set a manual size when several memes should match. Automatic fitting gives each block its own size, so two pictures with similar words can end up with different sizes.
- Place a free text box on a plain area of the picture, not over a face or the main subject. The box is drawn on top and cannot be made see-through.
Things to check before you rely on it
The text is not wrapped against the picture's content. A box placed over a face or a sign covers it, and nothing warns you about that; check the preview before saving.
Impact is a Windows and Mac font. On other systems the outlined text falls back to Arial Black or a generic sans-serif, so the look and the line breaks can differ from the examples. Check the preview on the device you will use to share.
A GIF keeps only its first frame. The saved meme is a still picture even when the original moves, and this is by design rather than a fault.
Very long text does not shrink below the smallest automatic size. When a block is flagged in amber, shorten it, widen its box, or switch it to a manual size and accept a smaller result.
JPG has no transparency, so a transparent PNG becomes white behind the text when saved as JPG. Choose PNG if the background must stay clear.
Pictures over 50 megapixels are refused. A picture whose own longest side is over 4096 pixels is scaled down when saved; the caption bar is not counted toward that limit. A very wide panorama will therefore come out smaller than it went in.
Best practices
- Write the words first, then pick the picture that suits them, so the top line and the subject of the picture work together.
- Keep text off faces and the most important part of the picture, and check that the words still read at phone size.
- Save PNG for a picture with sharp edges and JPG for a photograph, which gives a smaller file with little visible loss.
What the browser holds while you work
The picture lives in memory in this tab, and each text box is measured with the fonts already installed on your device. The page writes nothing to browser storage, so closing or reloading the tab clears the picture and the words, and the next visit starts from the default text.
The saved file is a fresh encode of the drawn canvas. The camera's EXIF block, the capture time and any location tags from the original photograph are not carried across, and the outlined words are flat pixels with no font attached. If you need the original metadata kept, this tool will not preserve it.
Caption bars and the picture's real size
A caption bar adds height to the picture rather than covering part of it, so nothing under the caption is lost. The saved height is the picture's height plus the bar, so an 800 by 600 picture with a caption bar is taller than 600. This matters when a picture is cropped to a particular social ratio afterwards: the bar changes the ratio, and a bar that is taller than planned will push a square picture off square.
If an exact shape matters, set the caption to one line, which gives a shorter bar, or crop the source picture before loading it.
Frequently asked questions
Is there a watermark?
No. The file you save is the picture and the text you wrote, with nothing added.
Why is my animated GIF a still image?
The generator reads the first frame of a GIF and writes a single still picture. Animated output would need a different encoder and is not offered here.
Can I use a meme template from the web?
This tool does not supply templates. It works on a picture you choose, so the picture you load should be one you have the right to use.