In this study, porous bacterial cellulose (BC) mat was prepared by freeze-thawing of BC hydrogel obtained from the kombucha fermentation process. Then, the porous BC was dyed with a nitrogen containing carbonyl dye (C.I. Vat Olive B) followed by phosphorus doping and employed as a precursor for preparation of carbon nanofilament. The P/N doped BC mat precursor was stabilized at 330 ºC for 2 h and carbonized at 800 ºC for 2 h. SEM images confirmed that BC based carbon exhibited the entangled filament structure. To follow the conversion of BC mat to carbon nanofilament, FTIR analysis and Raman spectroscopy were carried out. FTIR spectra of stabilized mats showed that the cellulose carbon-carbon double band centered at 1600 cm -1 appeared strongly. In contrast, the intensity of this band markedly decreased at carbonization stage, resulting from the conversion of cellulose carbon-carbon double bond into carbon aromatic ring which exhibited weak intensity. The graphitic structure was confirmed by the presence of sp 3 disorder hybridization and sp 2 hybridization (D and G bands, respectively) shown in Raman spectra). In addition, XRD diffractograms further confirmed the existence of amorphous carbon peak found at 26º, indicating that the P/N dopants played a role in inducing the graphitic structure as well as improving carbon yield. Finally, the electrochemical performance as a carbon electrode were revealed.