Nanoparticles of a novel boron-based carbazole derivative have been reported. They exhibit efficient green fluorescence, aggregation induced ratiometric fluorescence change and green/blue fluorescent switching to sense VOCs.