Lighting device for pin-to-pin replacement of linear fluorescent tubes within magnetic ballast fixtures, the lighting device comprising:. a container comprising two ends, each provided with bi-pin connectors, the container being adapted to allow light to pass through and being adapted to receive:. a plurality of LEDs associated to a first and a second input DC terminals;. a LED driver comprising:. AC input terminals configured to be connected to the terminals of one of said bi-pin connectors;. DC output terminals to be connected to the first and to the second DC input terminals of said plurality of LEDs;. an input current filter comprising input terminals connected to said AC input terminals;. a diode rectifier bridge comprising input terminals connected to the output terminals of said input filter;. an output current filter connected to the output terminals of said diode rectifier bridge;. a current regulator for regulating the DC output current from said DC output terminals characterized in that: said input current filter comprises a first capacitor in parallel with a first resistor connected between one of said input terminals and one of said output terminals of said input filter; said output current filter comprises a second capacitor in parallel with a second resistor connected between said diode rectifier bridge output terminals, the first capacitor and the second capacitor forming a capacitive voltage divider.. a container comprising two ends, each provided with bi-pin connectors, the container being adapted to allow light to pass through and being adapted to receive:. a plurality of LEDs associated to a first and a second input DC terminals;. a LED driver comprising:. AC input terminals configured to be connected to the terminals of one of said bi-pin connectors;. DC output terminals to be connected to the first and to the second DC input terminals of said plurality of LEDs;. an input current filter comprising input terminals connected to said AC input terminals;. a diode rectifier bridge comprising input terminals connected to the output terminals of said input filter;. an output current filter connected to the output terminals of said diode rectifier bridge;. a current regulator for regulating the DC output current from said DC output terminals characterized in that: said input current filter comprises a first capacitor in parallel with a first resistor connected between one of said input terminals and one of said output terminals of said input filter; said output current filter comprises a second capacitor in parallel with a second resistor connected between said diode rectifier bridge output terminals, the first capacitor and the second capacitor forming a capacitive voltage divider.. a plurality of LEDs associated to a first and a second input DC terminals;. a LED driver comprising:. AC input terminals configured to be connected to the terminals of one of said bi-pin connectors;. DC output terminals to be connected to the first and to the second DC input terminals of said plurality of LEDs;. an input current filter comprising input terminals connected to said AC input terminals;. a diode rectifier bridge comprising input terminals connected to the output terminals of said input filter;. an output current filter connected to the output terminals of said diode rectifier bridge;. a current regulator for regulating the DC output current from said DC output terminals characterized in that: said input current filter comprises a first capacitor in parallel with a first resistor connected between one of said input terminals and one of said output terminals of said input filter; said output current filter comprises a second capacitor in parallel with a second resistor connected between said diode rectifier bridge output terminals, the first capacitor and the second capacitor forming a capacitive voltage divider.. AC input terminals configured to be connected to the terminals of one of said bi-pin connectors;. DC output terminals to be connected to the first and to the second DC input terminals of said plurality of LEDs;. an input current filter comprising input terminals connected to said AC input terminals;. a diode rectifier bridge comprising input terminals connected to the output terminals of said input filter;. an output current filter connected to the output terminals of said diode rectifier bridge;. a current regulator for regulating the DC output current from said DC output terminals characterized in that: said input current filter comprises a first capacitor in parallel with a first resistor connected between one of said input terminals and one of said output terminals of said input filter; said output current filter comprises a second capacitor in parallel with a second resistor connected between said diode rectifier bridge output terminals, the first capacitor and the second capacitor forming a capacitive voltage divider. said input current filter comprises a first capacitor in parallel with a first resistor connected between one of said input terminals and one of said output terminals of said input filter; said output current filter comprises a second capacitor in parallel with a second resistor connected between said diode rectifier bridge output terminals, the first capacitor and the second capacitor forming a capacitive voltage divider.