Yes. The Nintendo 3DS (all models: Original, XL, 2DS, New 3DS, New 2DS XL) can play music via several methods:
1. Built-in Sound App (Best for Local Files)
Format: **MP3, AAC (M4A), WAV** (PCM).
Location: **SD Card** root or `/music/` folder.
Features: Playlist, shuffle, repeat, equalizer (Pop, Rock, Jazz, Classical), speed/pitch change, loop points, StreetPass sharing (swap songs with passersby).
Background Play: **Yes** – music continues in Home Menu, Sleep Mode (lid closed), and *some* games (if game allows).
2. Nintendo 3DS Sound (Same App, Extended)
Record audio via microphone (10 sec clips).
Edit: Trim, reverse, pitch, speed, echo.
Share via StreetPass / SpotPass.
3. In-Game Soundtracks
Many games (Smash 3DS, MH4U, Pokémon ORAS/XY, Zelda ALBW, Bravely Default) let you listen to OST in Sound Test / Jukebox mode, often unlocked via playtime.
Some (Rhythm Heaven Megamix, Theatrhythm) are music games.
4. External Player via Headphone Jack
3.5mm TRS output → any phone/MP3 player/PC. 3DS acts as passive amp (volume control works).
Limitations
No streaming (Spotify, Apple Music, YouTube Music).
No Bluetooth audio (except specific headsets for chat).
SD Card max 32 GB (officially); 64 GB+ works if formatted FAT32 (guiformat).
Sound quality: Decent DAC, but not audiophile.
Load an SD card with MP3s → Sound App → enjoy chiptunes on the go.