AI Usage Explanation
- Code: written with the help of an AI coding assistant (Claude); I direct, review and test all of it.
- Art in the module: none is AI-generated. The frames are rendered procedurally by my own generator from Poly Haven textures (CC0). The battle map in the preview is by 2-Minute Tabletop (CC BY-NC 4.0).
- Features: the module has no generative AI features and sends nothing to AI services.
The Best Token Generator
Make a complex token from an actor's portrait right in Foundry with ease. The core idea is simple and powerful. You only edit the character's picture: mark what goes over the frame, what goes under it, and what to erase.
Simple tokens are quick, and tricky ones become simple. Move and resize the portrait freely, swap the frame, all without fiddling with masks and layers.

Cockatrice art: The Illustrated Bestiary by Gourdin Konbo Club, CC BY-SA 4.0; the screenshot is under the same license.
Features
- Frames: pick from ready-made frames or upload your own
- Every frame in 4 sizes, for tokens from 1×1 to 4×4
- Hex maps and frames supported
- Sharp 1024px frames included
- Backgrounds: a color, a darker edge or your own image
- Many actors in one window for GMs. Player characters and NPCs on the current scene, with search. Click one to edit it in the same window.
- Preview your token on different maps and at real size
- Dynamic Token Ring support
- Edit the actor's portrait as well
- Two settings send me a little anonymous data:
- Send error reports and Send anonymous statistics on save.
- No names, paths or images, and it goes only to my own server.
- Both are off by default; Please turn them on: error reports let me fix bugs before anyone has to report them, and seeing that real people use the module keeps me maintaining it.

Token, with all actors from the scene

Portrait crop

Frames in 4 sizes: a Lancer mech in a size 2 hex frame

How to open
- Right-click an actor in the Actors sidebar → Token and Portrait.
- On the actor sheet: the ⋮ menu in the header (sheets like dnd5e) or the Token and Portrait button in the header (older sheets like pf2e).
- From a macro:
game.modules.get("best-token-generator").api.open(actor)
Feedback
Bugs and ideas: Discord.