A junk drawer fills up for a plain reason. It is usually the top drawer nearest the back door, the phone charger, or the end of the counter where the mail lands, and it is the closest place to put something small that has no other home. Scissors, tape, a pen that works, spare keys, and batteries go in because they are used there. A screw from a flat-pack shelf and a dead pen go in because the drawer was open.
So the drawer itself is useful. What it needs is a layout that keeps the things used every day where a hand can find them without looking, and a way to stop the rest from burying them.
Emptying It Onto the Counter

Take everything out and spread it on the counter in three groups. The first holds what is used in or near the kitchen, such as scissors, tape, pens and a marker, rubber bands, batteries, twine, a small tape measure, spare keys. The second holds things that work but belong somewhere else, like the screwdriver that goes with the tools, the hair tie, the charger for a device that lives upstairs. The third is what goes in the trash or recycling, such as dried-out pens, perished rubber bands, and paper with nothing on it worth keeping.
Take the second group to where it belongs before going any further. Left on the counter, it tends to go back into the drawer.
Deciding What the Drawer Is For
What stays depends on where the drawer is. A drawer by the back door suits keys, a flashlight, and the dog’s spare leash. One near the counter where the mail lands suits pens, a letter opener, stamps, and envelopes. One by the stove suits matches or a lighter, twist ties, and food bag clips.
Look at the first group and keep what is used from where the drawer is, at least every few weeks. Something used once a year can go to a box in a cupboard. That decision matters more than the choice of trays, because it sets how many things the trays have to hold.
Measuring Inside the Drawer

Measure inside the drawer box, not the drawer front. Take the width from side to side, the depth from the inside of the front to the inside of the back, and the height from the drawer bottom to the top of its sides.
The height that matters is lower than that. When the drawer closes, anything standing above the drawer sides hits the cabinet frame or the underside of the counter, so trays, and anything stacked in them, have to stay below the sides. Many tray sets come in sizes that step up by 3 inches, so a drawer 15 inches wide and 18 deep takes a grid of 3, 6, and 9 inch trays with little wasted space.
Trays by How Often You Reach

Put the things reached every day in the front row of trays, where they show the moment the drawer opens. Scissors, tape, and a pen are reached for while doing something else, often with one hand, so they need to be there without a search.
Spares go at the back, among them extra batteries, a second roll of tape, the twine used at Christmas. On drawers with three-quarter extension slides, the back quarter of the drawer stays under the counter even when it is pulled all the way out, which suits things used rarely. Full-extension slides bring the whole drawer into view, and the back row is easier to reach.
Batteries, Chargers, and Cords

Batteries need more care than anything else in the drawer. A 9-volt battery has both terminals on the same end, and a key, a coin, or a paper clip lying across them can short it and start a fire. A strip of electrical or masking tape over the terminals, or the plastic cap it came with, prevents that. Other loose batteries are safer in a closed case.
Button and coin batteries are dangerous to young children if swallowed, and a low kitchen drawer is within a child’s reach. Keep spares in a case that snaps shut, in a drawer a small child can’t open, or higher up. Cords and chargers stay untangled when each one is coiled and held with its own reusable tie.
A Compartment Left Empty

Leave one tray empty, at the front, for whatever turns up next. The screw from a new shelf, a key nobody recognizes, and a receipt waiting for a return then have somewhere to go that isn’t on top of the scissors.
When that tray is full, it is time to sort it. Each item goes into its tray, to its room, or out, and the drawer is back in order.