N-doped In2O3 nanofibers are facilely fabricated by gaseous ammonia treatment.
Adjusting the annealing temperature leads to different N-doped In2O3 nanofibers.
Nitrogen doping was found to be interstitial mode.
N-In2O3 exhibited effective charge carrier separation and photocatalytic activity.
The photocatalysts can be easily separated from the reaction system.