It depends on the specific London airport, your nationality, and current rules. Most US→India itineraries transit Heathrow (LHR) or Gatwick (LGW).
Some airports/terminals allow airside transit passengers to exit to landside (e.g., for lounge access, shopping), but you must clear UK border control (immigration) to fully enter the UK. This requires eligibility to enter the UK (visa-free or valid visa).
Tight. Allow: deplane (20–40 min), immigration queue (30–90 min), travel to city (Heathrow Express 15 min + tube, or 45–60 min car), return same buffer, security (30–60 min), gate walk. Realistically, 5 hours is borderline for leaving airside. Staying airside (lounges, shops) is safer.
If bags are checked through to India, you don’t need them. If you must collect/recheck, you must clear customs—adding time.
Rules can change instantly (threat levels, strikes). Confirm with your airline and airport website day-of.
Unless you have a UK visa (or visa-free access), a specific reason (meeting, medical), and >6–7 hours, stay airside. Use airport lounges (Priority Pass, airline, paid access), shops, showers, rest zones.