Taipei is the capital.
Taipei ( [ ˌtaɪˈpeɪ ] ) , officially known as Taipei City , is the capital city and a special municipality of Taiwan . As the capital city , `` Taipei '' is sometimes used as a synecdoche for Taiwan .