Trump Meme Generator
Generate hilarious Trump memes with random quotes, custom text, and downloadable images. Free online meme maker with drag-and-drop text positioning.
About
Political meme culture generates billions of impressions annually. A poorly constructed meme with illegible text, bad contrast, or misaligned captions fails to propagate. This generator pulls real quotes attributed to Donald Trump from a public API and composites them onto images using the Canvas 2D rendering pipeline. Text positioning uses pixel-level drag placement with automatic word-wrapping calculated against canvas width w minus configurable padding p. The stroke-fill dual-pass rendering ensures legibility against any background luminance.
The tool approximates standard meme typography conventions: bold Impact-style fonts, white fill with black outline at a stroke width of 2 - 4 pixels. Custom text input is sanitized but not censored. If the quote API is unreachable, the tool falls back to a local dictionary of 50+ verified quotes. Generated memes export as PNG at the native canvas resolution. No server-side processing occurs.
Formulas
Text wrapping on canvas requires measuring each word against available line width. The algorithm iterates over words and accumulates them until the measured pixel width exceeds the threshold:
For each word wi, the accumulated line is measured via measureText. If the result exceeds lineWidth, a line break is inserted and a new line begins. Total text height is:
where nlines is the number of wrapped lines, fontSize is in pixels, and lineHeight is a multiplier (default 1.2). The outline legibility technique uses dual-pass rendering: first strokeText with a dark color at stroke width s, then fillText with the fill color on top.
where x, y are the drag-determined coordinates stored in state.
Reference Data
| Quote Category | Example | Typical Use | Virality Index |
|---|---|---|---|
| Self-Aggrandizing | “I have the best words.” | Ironic overlay on mundane images | High |
| Hyperbolic Claims | “Nobody knows more about X than me.” | Expert contradiction memes | Very High |
| Insult-Based | “Low energy.” | Reaction images | High |
| Covfefe-Class | “Despite the constant negative press covfefe” | Absurdist humor | Legendary |
| Wall References | “We’re going to build a wall.” | Construction / barrier jokes | High |
| Winning | “We’re going to win so much.” | Sports / competition overlays | Medium |
| Superlative | “This is the greatest X in history.” | Mundane object praise | High |
| Fake News | “Fake news!” | Disagreement reaction memes | Very High |
| Tremendous | “Tremendous. Believe me.” | Approval / sarcasm | Medium |
| Deals | “The art of the deal.” | Negotiation / shopping memes | Medium |
| China | “China!” | Pronunciation emphasis memes | High |
| Billions | “Billions and billions.” | Exaggeration humor | Medium |
| Sad! | “Sad!” | Disapproval reaction | Very High |
| Wrong | “Wrong.” | Debate reaction images | High |
| Huge | “This is going to be huge.” | Scale comparison memes | Medium |