Add Text to Image
Write on a picture, drag the text where you want it and save the file at its full size. The picture stays on your device.
https://flxcode.com/add-text-to-image/
or drop one here, or paste with Ctrl+V. Until then you are working on a sample.
Drag the text to move it. Arrow keys move it by 0.5% of the width, with Shift by 5%. The text snaps to the middle when it gets close.
Your picture never leaves this device. There is no upload, no account and no watermark. How we count What this tool keeps and sends.
Problem or idea? Email us
How to use it
- Choose your picture, or start on the sample. Your first line of text is already on it.
- Type your words. Pick a font, a size and a color. Add an outline or a shadow if the picture is busy.
- Drag the text, or use the arrow keys, to place it. It snaps to the middle when it gets close.
- Add more text with "Add text" if you need a second line somewhere else. Then pick PNG or JPG and save.
Text size on pictures of different widths
Sizes are a share of the picture's width, so the text looks the same on the preview and on the full-size file. The table is made by the tool's own code.
| Size setting | 1080 px wide | 1920 px wide | 3000 px wide | 4000 px wide |
|---|---|---|---|---|
| 4% | 43 px | 77 px | 120 px | 160 px |
| 8% | 86 px | 154 px | 240 px | 320 px |
| 12% | 130 px | 230 px | 360 px | 480 px |
| 20% | 216 px | 384 px | 600 px | 800 px |
The outline is a share of the font size. The same outline setting gives these widths on three font sizes:
| Outline setting | 40 px text | 90 px text | 240 px text |
|---|---|---|---|
| 4% | 2 px | 4 px | 10 px |
| 8% | 3 px | 7 px | 19 px |
| 15% | 6 px | 14 px | 36 px |
Text that stays readable
Text on a photo gets lost when the background changes behind it. Three things help: a size big enough for the smallest screen it will be seen on, a color that contrasts with the area behind it, and an outline or a soft shadow when it does not. Placing text over a calm part of the picture matters more than any setting.
For a meme, the usual recipe is white heavy letters with a thick black outline, top and bottom. For a watermark, small text at 30 to 50% opacity in a corner. For a caption on a slide or a post, center it and let the shadow do the work.
Numbers this uses
- Size is 1 to 60% of the picture width. Rows are spaced at 1.2 times the font size.
- Rotation from -180 to 180 degrees, around the middle of the text block. Opacity 5 to 100%.
- Arrow keys move the text 0.5% of the picture, 5% with Shift. Snapping pulls it to the middle within about 1.2%.
- Up to 20 text layers, 2000 characters each. Pictures up to 100 MB and 50 megapixels.
Limits
- Fonts come from your device, so the look can differ between devices. Only what you see is saved, so check the preview.
- Languages that are written right to left are not handled specially: the letters are drawn, but the order of mixed text may not be right.
- With an outline and an opacity under 100%, the outline and the letters are drawn at that opacity separately, so they can show through each other.
- A GIF or an animated WebP gives its first frame only. The text is saved on that single picture.
How it works and privacy
Your browser opens the picture and draws it on a canvas, then draws each text layer on top: first the outline, then the letters. The saved file is made on a canvas of the picture's own size, then written as PNG or JPG. Nothing is uploaded or stored. A saved file counts one event, with the picture type and the format, and never your words, the file name or any size (details).
HEIC decoding uses libheif: open source used on this site.
FAQ
Is the saved picture the same size as the original?
Yes. The text is drawn on a full-size copy, not on the small preview, so a 4000 x 3000 photo comes back at 4000 x 3000. Only a picture over the device limit (50 megapixels, or about 16.7 on an iPhone or iPad) is scaled down, and the page says so.
Can I put several lines of text in different places?
Yes. Press Add text for a new layer. Each layer has its own words, font, size, color, outline, shadow, rotation and place. You can have up to 20. Select a layer in the list, or by clicking its text on the picture.
Which fonts can I use?
Five groups: sans-serif, serif, monospace, heavy (meme style), handwriting. They come from your device, because this site loads no web fonts, so the same text can look a little different on a Mac, a Windows PC and a phone. The saved file shows what you see.
How do I make the text readable on a busy picture?
Use an outline in a color that contrasts with the letters, for example black around white text, and keep the shadow on. A thicker outline (10 to 15% of the size) works for memes. Lower the opacity only for watermarks.
Can I add a watermark?
Yes. Type your name or site, set the opacity to 30 to 50%, rotate it if you like and place it in a corner or across the middle. It is part of the pixels once saved, so keep the original too.
Does it work with HEIC photos from an iPhone?
Yes. In browsers that can't read HEIC (most besides Safari) the page loads a small decoder the first time. The photo is turned upright and the location and camera data are not copied to the new file.
More from FLXCode
- Blur ImageBlur a whole photo or drawn rectangles, with a strength you set. Nothing is uploaded, and EXIF data is left out.
- Image ResizerResize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
- Crop ImageCrop a photo with drag handles, arrow keys or exact pixels. Presets for 1:1, 4:5 and 16:9. Nothing is uploaded.
- PNG to JPG ConverterConvert PNG images to smaller JPG files in your browser. Choose the quality. Nothing is uploaded.