Start with what they want
An NPC with a goal makes decisions on their own, which is what makes them feel alive. Make the want specific and immediate: not “wants power” but “wants the council seat that opens when the harbourmaster dies”. Then decide what they’ll do to get it, and what they’ll do if the party helps or gets in the way.
Give them one look and one voice
You don’t need a full description. One physical detail and one way of speaking are enough to make an NPC recognisable every time they appear:
- a look: salt-stained gloves she never takes off; a laugh that turns into a cough;
- a voice: speaks in questions; calls everyone “friend”; never uses names.
Pick details you can actually perform at the table. A habit you can act out beats an accent you can’t keep up.
Decide what they know
Most NPCs exist to move information around. List the two or three things this NPC can tell the party, and how much pushing it takes. This turns conversations into discovery rather than you deciding on the spot what to give away.
Give them a secret
A secret gives an NPC depth and gives you a twist to reveal later. It doesn’t have to be dramatic: the friendly innkeeper waters the ale; the priest has stopped believing. The best secrets connect to the main story, so uncovering one leads somewhere.
Write a one-line summary
Above everything else, write one line you could run the NPC from if you had no time to read the rest: “Harbourmaster · chairs the council · fussy and polite · secretly paid by the cult”. At the table, that line is often all you’ll look at.
A template you can copy
Name: Jory Pell Summary: Harbourmaster · chairs the town council · secretly paid by the Grey Choir Wants: to keep the harbour open, whatever it costs Look: ink-stained cuffs, polishes his spectacles when lying Voice: over-polite, apologises before bad news Knows: which ships left the night the light went out Secret: the Choir pays him to look the other way Stats: noble (or a stat block of your own)
Keep track of them
NPCs you improvise are the ones you forget. Write down every name you make up during a session, and turn the ones the players liked into proper entries afterwards. Linking NPCs to the places and sessions they appear in means you can always find out where the party last saw them.

Questions
How do you make an NPC interesting in D&D?
Give them a specific goal, one memorable look, one way of speaking, a few things they know and a secret. Players remember what an NPC wanted and how they acted more than their history.
How many NPCs should a campaign have?
As many as the story needs, but only a handful need full detail. Give major NPCs goals, secrets and stats, and give minor ones just a name, a look and a one-line summary.