The feeding habit of large-head hairtail (Trichiurus lepturus) in the northern South China Sea was investigated through isotopic and stomach content analyses. The isotopic features of the hairtail at the same body size differed among regions, with the fish in coastal waters presenting higher δ15N and δ13C values compared to those in the open sea, indicating different trophic levels (TL), food habits, and isotopic baselines. According to the partial correlation of water depth with δ15N values, the sampling stations were divided into three regions based on the depth of water: coastal (20–40 m), near coastal (60–80 m), and open sea (100–200 m) regions. In the coastal region, the hairtail from stations affected by the Pearl River plume exhibited lower δ15N and δ13C values. The stomach content analysis indicated different feeding habits of the hairtail from different regions. The hairtail in the coastal and near coastal waters fed more on fish and less on crustaceans compared to the hairtail in the open sea. The relationship between δ15N and fish size exhibited two contrary patterns. First, the δ15N values increased with increasing preanal length in the hairtail sampled from the water depth of 30–40 m in section F (in fish with preanal length < 200 mm) and those samples from the water depth of 100–200 m. This finding reflected an ontogenetic shift in diet and TL. However, the δ15N values tended to decrease with the increasing preanal length of the hairtail samples collected from the water depth of 30–40 m in section F (fish with a preanal length of ~200–300 mm). These findings suggested that under the conditions of insufficient availability of high-quality prey, the larger hairtail fed more on low-TL prey to compensate for the increase energy demand, arising due to growth, which led to the observed decrease in δ15N values.