Elsewhere, holders Liverpool will welcome Wolverhampton Wanderers to Anfield, while Manchester United are at home to Everton in another all-Premier League tie.
National League Dagenham and Redbridge or Gillingham will host Leicester City, who won the competition in 2021.
The third round will be played between 6 and 9 January 2023.
Draw in full
Preston v Huddersfield
Middlesbrough v Brighton
Chesterfield v West Brom
Manchester City v Chelsea
Charlton or Stoke v Walsall
Boreham Wood v Accrington
Tottenham v Portsmouth
Derby v Barnsley
Cardiff v Leeds
Brentford v West Ham
Bournemouth v Burnley
Coventry v Wrexham
Norwich v Blackburn
Aston Villa v Stevenage
Luton v Wigan
Oxford v Arsenal
Fleetwood v QPR
Liverpool v Wolves
Grimsby v Burton
Blackpool v Nottingham Forest
Dagenham & Redbridge or Gillingham v Leicester
Forest Green v Birmingham
Bristol City v Swansea
Hartlepool v Stoke
Hull v Fulham
Crystal Palace v Southampton
Millwall v Sheffield United
Shrewsbury v Sunderland
Sheffield Wednesday v Newcastle
Manchester United v Everton
Reading v Watford
Ipswich v Rotherham
- Our coverage of your Premier League club is bigger and better than ever before - follow your team and sign up for notifications in the BBC Sport app to make sure you never miss a moment