Herein we report that boron doping in carbon dots results in increased photoluminescence (PL) quantum yield, which could be used for ratiometric intracellular pH sensing in cancer cell lines. Using a mixture of citric acid monohydrate, thiourea, and boric acid, microwave-assisted synthesis of boron doped blue emitting carbon dots (B-Cdots) with an average size of 3.5±1.0 nm was achieved. For B-Cdots, the maximum quantum yield (QY) was observed to be 25.8 % (11.1 % (w/w) H3 BO3 input concentration), whereas, the same was calculated to be 16.9 % and 11.4 % for Cdots (synthesized from citric acid monohydrate and thiourea only) and P-Cdots (phosphorus doped carbon dots; synthesized using citric acid monohydrate, thiourea and phosphoric acid) (11.1 % (w/w) H3 PO4 input concentration), respectively. The observed luminescence efficiencies as obtained from steady state and time-resolved photoluminescence measurements suggest an alternative emission mechanism due to boron/phosphorus doping in carbon dots. We furthermore demonstrated facile composite formation using B-Cdots and another carbon dots with orange emission in presence of polyvinyl alcohol (PVA), resulting in white light emission (0.31, 0.32; λex 380 nm). The white light emitting composite enabled ratiometric pH sensing in the aqueous medium and showed favorable uptake properties by cancerous cells for intracellular pH sensing as well.