Practical and divergent electrochemical access to thiocarbamoyl fluorides and N-trifluoromethyl amines from secondary amines Authors: Feba T Pulikkottil, Daniel F Carvalho, Kohei Taniguchi, John S Burnett, Charles A I Goodall, Victoria K Elmes, Andrew Hurt, Ewan R Clark, Anthony J H M Meijer, Kevin Lam Published: 2026 ABSTRACT AbstractWe report a practical and divergent electrochemical method for converting simple secondary amines into thiocarbamoyl fluorides and N-trifluoromethyl amines. Using inexpensive, bench-stable reagents, including Et₃N·3HF and CS₂, these one-pot transformations proceed under mild, open-air conditions without solvent drying, degassing, inert atmosphere, or stoichiometric silver reagents. By tuning the reaction conditions, the same general strategy provides either product class in moderate to excellent yields across a broad substrate scope, with high functional-group tolerance and applicability to late-stage modification of complex bioactive molecules. The method is readily scalable and offers a practical alternative to existing fluorination approaches that rely on hazardous or costly reagents. Mechanistic studies combining cyclic voltammetry, ¹⁹F NMR spectroscopy, UV–Vis spectroscopy, HRMS, XRD, SEM–EDX, authentic intermediate analysis, and DFT calculations support a multistep pathway involving dithiocarbamate salts and thiuram intermediates, followed by bromide-assisted fluorination. This operationally simple, metal-free platform provides practical access to valuable fluorinated nitrogen-containing building blocks for synthesis, medicinal chemistry, and materials science.Subject terms: Synthetic chemistry methodology, Electrocatalysis Introduction Despite fluorine being the 13th most abundant element in the Earth’s crust, naturally occurring organofluorine compounds are rare1. Over the past three decades, organofluorine chemistry has become a major area of research, driven by the growing demand for fluorinated molecules in pharmaceuticals, agrochemicals, and materials science. In drug discovery, fluorine substitution can profoundly influence physicochemical and biological properties, including lipophilicity, absorption, metabolic stability, and target binding1,2. Among fluorinated functional groups, carbamoyl fluorides3, thiocarbamoyl fluorides4, and N-trifluoromethyl amines5–12 are particularly valuable motifs and synthetic building blocks. Carbamoyl and thiocarbamoyl fluorides represent a unique class of compounds that combine high stability and reactivity. In contrast to their unstable chloride analogues, their synthesis avoids the use of highly hazardous reagents such as thiophosgene and chlorine gas, offering a safer and more practical alternative. Furthermore, these fluorides exhibit broad functional group tolerance and demonstrate remarkable resistance to hydrolysis, even under aqueous and physiologically relevant conditions4. In parallel, landmark studies by Schoenebeck and co-workers have established elegant umpolung and SCF3-based approaches to N-trifluoromethyl amines, highlighting the growing importance of fluorine-nitrogen motifs in modern synthesis5–11. Together, these structural features have emerged as attractive targets for synthetic chemistry and medicinally relevant molecular design. A range of strategies has been developed to access N-trifluoromethyl amines, including fluorine-halogen exchange, fluorodesulfurisation, and deoxyfluorination. Early methods relied on highly toxic and volatile reagents such as sulfur tetrafluoride13,14, antimony trifluoride15, and fluorophosgene16, and typically required harsh conditions, specialised equipment, and generated large quantities of hydrogen fluoride. Later approaches based on direct fluorination of thiocarbamates17 or dithiocarbamates with BrF318, phenylsulfur fluorides19, or acidic HF-based systems20–23 represented important advances, but often required prefunctionalised substrates and excess reagents (Fig. 1A). Historical and modern strategies for accessing thiocarbamoyl fluorides and N–CF₃ amines. A Early approaches (1961–2012) relied on hazardous fluorination reagents and precursor-based routes. B More recent direct-amine protocols (2016–2025) achieved important breakthroughs, notably via –SCF₃ reagents (Schoenebeck) and AgF-mediated desulfurisation–fluorination, but remained limited by reagent cost and scalability. C Lead molecules containing N-trifluoromethyl amine moieties. D This work introduces a practical electrochemical platform that enables divergent access to R₂NCSF and R₂NCF₃ from simple secondary amines under mild, scalable, and AgF-free conditions. To address these limitations, one-pot desulfurisation-fluorination protocols have been developed that proceed through thiocarbamoyl fluoride intermediates. In many cases, in situ-generated thiofluorophosgene equivalents react with secondary amines to give R1R2NCSF, which can then be converted into N-trifluoromethyl amines using stoichiometric AgF. Representative approaches include the decomposition of Me4N·SCF3 salts6,24, the reduction of CF3SO2Na25, the trapping of difluorocarbene with sulfur, and activation of CS2 with sulfur-fluoride reagents26,27. Despite their synthetic utility, these methods still depend on unstable, hazardous, or expensive reagents and remain poorly suited to practical scale-up. Even bench-stable SCF3 reagents such as [Me4N][SCF3] are costly, while one-step CS2/AgF protocols still rely on stoichiometric AgF and generate substantial waste (Fig. 1B)12,28. These limitations highlight the need for a more practical and sustainable route to thiocarbamoyl fluorides and N-trifluoromethyl amines from simple, bench-stable precursors. Such a goal is particularly relevant given the prominence of fluorine and nitrogen in bioactive molecules: by 2019, nearly 43% of FDA-approved small-molecule drugs contained at least one fluorine atom, while nitrogen is present in roughly 80% of pharmaceuticals and other biologically active compounds (Fig. 1C)1,2,25,29,30. In this work, we report a practical and divergent electrochemical platform that converts simple secondary amines into either thiocarbamoyl fluorides or N-trifluoromethyl amines by tuning the reaction conditions (Fig. 1D). The method avoids stoichiometric silver salts and hazardous fluorination reagents and proceeds under mild conditions with an eco-scale score of approximately 70 (see Supplementary Information). This protocol uses only inexpensive, bench-stable reagents, including Et3N·3HF, CS2, and either KOH or DABCO, and does not require solvent drying, degassing, inert atmosphere or toxic gases. Unlike many HF-derived fluorination reagents, Et3N·3HF is a near-neutral liquid that is compatible with glass at room temperature, straightforward to handle, and enables controlled reactivity under mild aerobic conditions31. Combined with a favourable eco-scale score, this operational simplicity makes the method attractive for practical scale-up at an estimated reagent cost of approximately £4 per mmol of amine. The platform, therefore, offers a practical and versatile route to fluorinated nitrogen-containing building blocks of relevance to medicinal chemistry and materials science. Results Optimisation for thiocarbamoyl fluoride formation We first optimised the electrochemical conditions for the direct synthesis of thiocarbamoyl fluorides 2 (Table 1). Guided by our previous work on thioisocyanates32–34, carbamoyl fluorides3, and fluorothioformates35, we selected Pt/Pt electrodes and generated dithiocarbamate salt M1 in situ from the parent amine 1 and 2.0 equivalents of CS2. Under these conditions, electrolysis in ACN with 2.0 equivalents of Et3N·3HF at 11.11 mA cm−2 afforded R2NCSF in 22% yield (entry 1). Addition of KOH, intended to favour the formation of the corresponding potassium dithiocarbamate, reduced the yield to 13% (entry 2), whereas inclusion of catalytic Et4NBr, a known mediator in fluorodesulfurisation31, slightly improved the outcome to 23% (entry 3). Notably, combining KOH and Et4NBr produced a pronounced synergistic effect, increasing the yield to 78% (entry 4). Table 1Optimisation of N,N-dibenzyl thiocarbamoyl fluorides synthesiscEntryDeviation from the above conditionsRatio (2a:3a)Yield (%)a, b1Amine, CS2 and Et3N·3HF, no base1:1.1022b2With KOH1:0.0013b3Et4NBr, with no base1:0.0023b4KOH and Et4NBr1:0.1878a5Stainless steel as cathode1:0.0030b6Nickel as cathode1:0.0047b7Carbon as cathode1:0.0028b8Carbon as anode1:0.0653b9Carbon as cathode and anode1:0.0442b10ACN: DMSO (1:1) as solvent, 20 F mol−11:0.0087b1115 mA1:0.0051b1225 mA1:0.0372b131.0 eq Et3N·3HF1:0.0056b143.0 equiv. Et3N·3HF1:0.0083b150.5 equiv. Et4NBr1:0.0295b161.0 equiv. Et4NBr1:0.0285b170.5 equiv. DABCO1:0.0372b18[c]No deviation1:0.0091a192.0 equiv. DABCO1:0.1695b20TBAF·3HF as F- source1:0.473b21NH4F as F- source1:0.249b22BF3OEt2 as F- source0:015b23CF3CO2Na as F- source0:0n.d.24TMSCF3 as F- source0:0n.d.25TBAH2F3 as F- source0:0n.d26TMAF as F- source1:0Traces27CsF as F- source0:0n.d.28KF as F- source0:0n.d.29No electricity0:0n.d.aIsolated yield.bDetermined by 1H NMR, bromoform as internal standard.cDibenzylamine 1a (39.5 mg, 0.2 mmol, 1.0 equiv.), DABCO (22.4 mg, 0.2 mmol, 1.0 equiv.), carbon disulfide [(CS2), 76.1 mg, 1.0 mmol, 5.0 equiv.], ACN (3.0 mL, 0.067 M), Et4NBr (8.4 mg, 0.04 mmol, 0.2 equiv.), Et3N·3HF (64.5 mg, 0.4 mmol, 2.0 equiv.). Optimisation of N,N-dibenzyl thiocarbamoyl fluorides synthesisc aIsolated yield. bDetermined by 1H NMR, bromoform as internal standard. cDibenzylamine 1a (39.5 mg, 0.2 mmol, 1.0 equiv.), DABCO (22.4 mg, 0.2 mmol, 1.0 equiv.), carbon disulfide [(CS2), 76.1 mg, 1.0 mmol, 5.0 equiv.], ACN (3.0 mL, 0.067 M), Et4NBr (8.4 mg, 0.04 mmol, 0.2 equiv.), Et3N·3HF (64.5 mg, 0.4 mmol, 2.0 equiv.). Alternative electrode materials, including stainless steel, Ni, and carbon, proved less effective, confirming Pt/Pt as the preferred electrode combination (entries 5–9). Switching to a mixed ACN/DMSO solvent system suppressed over-fluorination of the thiocarbamoyl fluoride to the corresponding N-trifluoromethyl amine, although at the expense of a longer electrolysis time (20 F mol−1 versus 7 F mol−1, entry 10). Variation of the current density gave moderate to good yields across the range examined (entries 11 and 12). Screening the amount of Et3N·3HF showed that 2.0 equivalents provided a suitable balance between efficiency and reagent loading under the standard conditions (entries 13, 14 and 18). By contrast, increasing the amount of Et4NBr lowered the yield and selectivity, and led to greater side-product formation (entries 15 and 16). Replacing KOH with DABCO gave comparable, and in some cases improved, results (entries 17−19). Given its lower hygroscopicity, DABCO also offers a more practical and user-friendly base for small-scale use. Other fluorine sources were examined, but in most cases, no desired product was detected (entries 20−28). Finally, no product was formed in the absence of electrolysis, confirming that electricity is essential for the transformation. Optimisation for N-trifluoromethyl amine formation Having established efficient conditions for thiocarbamoyl fluoride formation, we next optimised the further electrochemical conversion of these intermediates into N-trifluoromethyl amines 3 (Table 2). Initial experiments were conducted in ACN using 5.0 equivalents of Et₃N·3HF, a graphite anode, a platinum cathode, and electrolysis at 20 mA to 8 F mol−1. Under these conditions, the desired product was obtained in only 9% yield (entry 1). Guided by our earlier observations, inclusion of Et4NBr as an additive improved the yield to 28−30%, depending on the loading (entries 2 and 3). Replacing bromide with other halides proved detrimental: Et4NCl lowered the yield to 5%, whereas Et4NI was ineffective (entries 4 and 5). Variation of the cathode material, including Ni, graphite, and stainless steel, gave no improvement over platinum (entries 6–8), although increasing the current to 40 mA led to a modest increase in yield to 40% (entry 9). Table 2Optimisation of N-trifluoromethyl aminesEntryCathode (−)I (mA)X (F mol−1)Et4NBr equiv.yield (%)a1Pt208–92Pt2080.2283Pt2082304bPt208255cPt208206Ni2082177SS208258Cgr4082149dPt40824010Pt202017411Pt203018112dPt202019413d, ePt202019514d, e, fPt4020192a1H NMR yield, bromoform as internal standard.bEt4NCl instead of Et4NBr.cEt4NI instead of Et4NBr.dPt as anode (+).e3.0 equiv. of Et3N·3HF.fDibenzylamine 1a (39.5 mg, 0.2 mmol, 1.0 equiv.), KOH (11.2 mg, 0.2 mmol, 1.0 equiv.), carbon disulfide [(CS2), 76.1 mg, 1.0 mmol, 5.0 equiv.], ACN [3.0 mL, 0.067 M)], Et4NBr (42.0 mg, 0.2 mmol, 1.0 equiv.), Et3N·3HF (96.7 mg, 0.6 mmol, 3.0 equiv.). Optimisation of N-trifluoromethyl amines a1H NMR yield, bromoform as internal standard. bEt4NCl instead of Et4NBr. cEt4NI instead of Et4NBr. dPt as anode (+). e3.0 equiv. of Et3N·3HF. fDibenzylamine 1a (39.5 mg, 0.2 mmol, 1.0 equiv.), KOH (11.2 mg, 0.2 mmol, 1.0 equiv.), carbon disulfide [(CS2), 76.1 mg, 1.0 mmol, 5.0 equiv.], ACN [3.0 mL, 0.067 M)], Et4NBr (42.0 mg, 0.2 mmol, 1.0 equiv.), Et3N·3HF (96.7 mg, 0.6 mmol, 3.0 equiv.). A much greater improvement was achieved by increasing the total charge passed, which raised the yield to 74% at 20 F mol−1 and 81% at 30 F mol−1 (entries 10 and 11). Replacing the graphite anode with platinum proved decisive, affording the N-trifluoromethyl amine in 94% yield at 20 F mol−1 when Pt/Pt electrodes were used (entry 12). Further optimisation showed that the loading of Et3N·3HF could be reduced to 3.0 equivalents and the current increased without compromising reaction efficiency, thereby shortening the electrolysis time (entries 13 and 14). The final conditions therefore employed Pt/Pt electrodes, 3.0 equivalents of Et3N·3HF, 1.0 equivalent each of KOH and Et4NBr, a current of 40 mA, and a total charge of 20 F mol−1, delivering the desired N-trifluoromethyl amine in 92% yield (entry 14). Full optimisation details are provided in the Supplementary Information. Substrate scope for thiocarbamoyl fluorides (R₂NCSF) With the optimised conditions in hand, we first evaluated the scope of the thiocarbamoyl fluoride synthesis (Fig. 2A). A broad range of functionalised secondary amines proved compatible, including both aliphatic and heterocyclic substrates. The standard substrate 2a was obtained in 78% isolated yield using KOH, whereas replacing KOH with DABCO increased the yield to 91%. Cyclic amines of medicinal relevance, such as morpholine 2b and thiomorpholine 2c, were smoothly converted into the corresponding products in 53 and 85% yield, respectively. Spirocyclic scaffolds 2d and 2e, which are valued for their three-dimensionality in drug design, were also well tolerated and afforded the corresponding thiocarbamoyl fluorides in 62−81% yield. A heteroaromatic furan derivative 2f gave 61% yield, whereas benzyl amines, both unsubstituted 2g and halogen-substituted 2h−j, delivered the desired products in 60–88% yield. Substrate scope of the electrochemical fluorination platform. A N,N-dialkyl thiocarbamoyl fluorides. B N-trifluoromethyl amines. [a] Amine (0.4 mmol, 1.0 equiv.), DABCO (0.4 mmol, 1.0 equiv.), carbon disulfide [(CS₂), 2.0 mmol, 5.0 equiv.], ACN (5.0 mL, 0.067 M), Et4NBr (0.08 mmol, 0.2 equiv.), Et3N·3HF (0.8 mmol, 2.0 equiv.). [b] KOH instead of DABCO. [c] Silica pad filtration. [d] 10 mA. [e] DABCO. [f] 9 F mol−1. [g] Column purification. [h] 6 F mol−1. [i] Obtained from ethyl diphenylcarbamodithioate (1aa) following general procedure 1A. [j] Amine (0.4 mmol, 1.0 equiv.), KOH (0.4 mmol, 1.0 equiv.), carbon disulfide [(CS₂), 2.0 mmol, 5.0 equiv.], ACN (5 mL, 0.067 M), Et4NBr (0.4 mmol, 1.0 equiv.), Et3N·3HF (1.2 mmol, 3.0 equiv.). [k] qNMR yield. [l] Obtained from ethyl diphenylcarbamodithioate (1aa) following general procedure 2A. Electronic effects influenced the reaction outcome. A nitrile-substituted cyclic amine 2k gave only 26% yield, whereas other electron-withdrawing substituents, including –CF2R 2l and –CF3 2m, were better tolerated and afforded the corresponding products in 64 and 63% yield, respectively. Halogen-substituted cyclic amines were also compatible, as illustrated by 2n, which was obtained in 77% yield. Notably, substrates bearing alkene 2o and alkyne 2p groups reacted cleanly to give the desired products in moderate yields, without detectable competitive fluorination of the unsaturated moieties. Other functional groups, including ethers 2q, esters 2r, and ketones 2s, were likewise tolerated, although with more modest efficiency. Protected amines also proved compatible: a Boc-protected substrate 2t gave 73% yield, whereas the corresponding amide-protected analogue 2u was obtained in 42% yield. Drug-derived amines 2v−x were less effective substrates, furnishing the corresponding thiocarbamoyl fluorides in moderate to low yields, consistent with a greater tendency towards overoxidation and decomposition to carbamoyl fluoride derivatives. Because aromatic amines are less nucleophilic towards CS2 and form dithiocarbamate salts less readily, the aryl-substituted product 2y was instead prepared from the corresponding dithiocarbamate ester precursor 1y in 66% yield (See Supplementary Information). Overall, these results highlight the broad functional-group tolerance of the thiocarbamoyl fluoride-forming protocol and its potential for late-stage diversification of medicinally relevant scaffolds. Substrate scope for N-trifluoromethyl amines The results are summarised in Fig. 2B. Under the optimised electrochemical conditions, a broad range of secondary amines were converted into the corresponding N-trifluoromethyl derivatives in moderate to excellent yields. Functional-group tolerance was generally high. The standard substrate 3a and the naphthyl analogue 3b were obtained in good and excellent yield, respectively. A notable advantage of using Et3N·3HF as the fluorine source is its compatibility with acid-sensitive protecting groups. Unlike more acidic fluorination reagents, it did not promote Boc deprotection, allowing the Boc-protected substrate 3c to be isolated in 68% yield26. Similarly, the amide-protected substrate 3d furnished the desired product in 61% yield. Substituted benzylic amines bearing electron-withdrawing halogens 3e and 3f or an electron-donating methoxy group 3g performed particularly well, affording the corresponding products in 69−75% yield. By contrast, the ester-substituted benzyl glycine derivative 3h was obtained in only 39% yield, likely owing to reduced product stability. Several potentially bioactive scaffolds also proved compatible with the reaction conditions. Electrolysis of fluoxetine delivered the corresponding N-trifluoromethyl analogue 3i in 44% yield, while thiomorpholine oxide 3j and thiomorpholine dioxide 3k, motifs relevant to antibiotic chemistry, were obtained in 23% and 30% yield, respectively. A further series of complex drug-derived amines also underwent efficient N-trifluoromethylation, affording products 3l–s in moderate to excellent yields, further highlighting the breadth of the method. Because some N-trifluoromethyl amines decomposed rapidly on silica gel, thereby limiting chromatographic purification36, compounds 3t−z were characterised by NMR yield. Diarylamines as substrates proved more challenging because their low nucleophilicity renders addition to CS2 reversible, leading to instability of the corresponding dithiocarbamate salt. To circumvent this problem, the intermediate was trapped by alkylation with EtBr as the corresponding S-ethyl dithiocarbamate ester 1aa37, from which the aryl-substituted product 3aa was obtained in 34% yield. S-ethyl diphenylcarbamothioate 2y’ was formed as the major by-product under these conditions (see Supplementary General Procedure 2A). Overall, these results demonstrate the broad applicability of the method and highlight its potential for late-stage modification of drug-like molecules. Scale-up reactions To demonstrate the practicality of the method, we carried out gram-scale electrolysis under the optimised conditions. Thiomorpholine was converted on a 10.0 mmol (1.0 g) scale into the corresponding thiocarbamoyl fluoride 2c in 88% isolated yield (Fig. 3A), with no substantial loss in efficiency relative to the small-scale reaction. Likewise, dibenzylamine 1a was electrolysed on a 5.07 mmol (1.0 g) scale to furnish N-trifluoromethyl product 3a in excellent yield (see Supplementary scale-up section). The crude reaction mixture could then be directly subjected to hydrolysis in DMSO/H₂O (1:1) at 70 °C overnight to give carbamoyl fluoride 4a in 97% yield without chromatographic purification (see Supplementary applications section). Further scale-up to 25.3 mmol (5.0 g) was also successful, although with diminished yield (Fig. 3B), likely owing to the longer electrolysis time and partial decomposition of the N-trifluoromethyl intermediate during prolonged reaction times. This limitation should be alleviated in setups equipped with larger electrode surface areas, which would permit higher current and shorter electrolysis times. Nevertheless, these experiments demonstrate that multigram quantities of N-trifluoromethyl products can be obtained even with standard small-electrode configurations. Overall, the scale-up studies highlight the robustness and operational simplicity of the protocol and support its suitability for larger-scale applications under mild conditions. Scale-up reactions and applications of thiocarbamoyl fluorides and N-trifluoromethyl amines. A 1.0 g scale reaction of R2NCSF synthesis; B 5.0 g scale reaction of R2N-CF3 synthesis; C R2NCOF synthesis and scope; D Thiocarbamate synthesis from R2NCOF; E Reaction of R2NCSF with dimethyl malonate; F Reaction of R2NCSF with Grignard reagent; G, H reaction of R2NCSF with alcohols; I reaction of R2NCSF with amines. Applications Having established the scope of the N,N-dialkyl thiocarbamoyl fluoride and N-trifluoromethyl amine products, we next explored their value in downstream transformations (Fig. 3C, I). In particular, the thiocarbamoyl fluorides proved to be versatile intermediates that could be further elaborated through reaction with suitable nucleophiles. Guided by previous reports36, we found that the in situ generated N-trifluoromethyl amines could be converted directly into carbamoyl fluorides 4a−c in excellent yields, thereby providing access to these products from simple amines without the need for multistep sequences via oxamic acids3. The resulting carbamoyl fluoride 4a could then be further transformed with thiophenol to give S-phenyl dibenzylcarbamothioate 4d. Further diversification of the thiocarbamoyl fluorides was also demonstrated. Thiomorpholine-4-carbothioyl fluoride 2c reacted with dimethyl malonate to afford dimethyl 2-(thiomorpholine-4-carbonothioyl)malonate 5a in 75% yield, and with a Grignard reagent to give phenyl(thiomorpholino)methanethione 5b in 38% yield. Reactions with naturally occurring alcohols furnished fluorinated derivatives of geraniol, menthol, citronellol, and eugenol in excellent yields 7a−e. Finally, thiourea formation was demonstrated by coupling thiomorpholine-4-carbothioyl fluoride 2c with bioactive amines such as dopamine, mexiletine, nortriptyline, and fluoxetine, affording the corresponding products in excellent yields 8a−e. Mechanistic studies The transformation appears to proceed through a multistep sequence involving consecutive redox and nucleophilic events (Fig. 4). To probe this mechanism, we combined electrochemical methods with DFT calculations, spectroscopic and analytical techniques, including cyclic voltammetry (CV), 19F NMR spectroscopy, UV−Vis spectroscopy, HRMS, single-crystal and powder XRD, and SEM–EDX. For these studies, 4-(trifluoromethyl)piperidine 1m was used as the model substrate for 19F NMR experiments, whereas dibenzylamine 1a was used for UV−Vis analysis. In addition, representative dithiocarbamate salts M1 and the corresponding thiuram intermediates M2 were independently prepared and fully characterised, providing authentic reference materials for the intermediates observed during electrolysis (Fig. 4A). Control experiments and plausible mechanism. A X-ray crystallography of M1 and M2; B UV−Vis experiments; C 19F NMR experiments; D1 Synthesis of N−CSF (2a) starting from M1 and M2 and D2 formation of 3a from 2a; E Experimental Et4NBr control reaction; F Cyclic voltammetry studies of Et4NBr (−), Et4NBr + M2 (0.5 equiv.) (−), and Et4NBr + M2 (1.0 equiv.) (−) vs. Fc+/Fc; G Plausible mechanism. Crystallisation of the dibenzylamine-derived salt [Bn2N−CS2-][DABCO−H⁺] M1 from dichloromethane instead of THF/hexane (1:1) solvent mixture unexpectedly afforded crystals of thiuram derivative M10, identified as N-Bn2N−CS2−CH2−S2C−NBn2 (see Supplementary crystallographic data). This observation indicates that these dithiocarbamate salts can slowly react with dichloromethane, and therefore that chlorinated solvents should be avoided in this chemistry. Formation and behaviour of the dithiocarbamate salt M1 Treatment of dibenzylamine with CS2 and DABCO gave rise to two new UV absorptions at 260 and 302 nm (Fig. 4B), matching those of authentic [Bn2N−CS2-][DABCO−H⁺] M1 (Supplementary Fig. 5). HRMS analysis further supported formation of this species by confirming its elemental composition (Supplementary Fig. 7). In 19F NMR experiments, treatment of 4-(trifluoromethyl)piperidine 1m with CS2 and DABCO shifted the fluorine resonance from −75.38 to −75.35 ppm, consistent with formation of the corresponding dithiocarbamate 1m’ (Supplementary Fig. 12b). Unlike the dibenzylamine-derived salt M1, which proved relatively stable, the corresponding piperidine derivative 1m′ was only transiently stable and gradually oxidised in the NMR tube. Within one hour, a new 19F NMR signal appeared at −74.59 ppm, corresponding to thiuram species 1m″ (Fig. 4C). These observations suggest that spontaneous oxidation of the dithiocarbamate to the thiuram can occur in air, likely mediated by dissolved oxygen. Electrolysis of isolated [Bn2N−CS2−][DABCO−H⁺] M1 under the standard conditions afforded the corresponding thiocarbamoyl fluoride in 87% yield (Fig. 4D1). Likewise, when isolated thiocarbamoyl fluoride 2a was subjected to the standard electrochemical conditions for N-trifluoromethyl amine formation, product 3a was obtained in 93% yield (Fig. 4D2). Together, these experiments support the intermediacy of both dithiocarbamate and thiocarbamoyl fluoride species in the overall reaction pathway. Anodic oxidation and dimerisation CV experiments clarified the anodic events. Bromide was oxidised at Epox = 0.27 V versus Fc⁺/Fc⁰ (Supplementary Fig. 14), whereas dithiocarbamate [Bn2N−CS2−][DABCO−H⁺] M1 exhibited a chemically irreversible oxidation at Epox = −0.23 V versus Fc⁺/Fc⁰ (Supplementary Fig. 15), indicating that M1 is oxidised preferentially. Formation of the corresponding [Bn₂N−CS₂•] radical was further supported by trapping experiments with TEMPO (Supplementary Fig. 18). A second anodic wave appeared at Epox = 0.75 V versus Fc⁺/Fc⁰, matching the oxidation potential of independently prepared thiuram M2 and supporting the assignment of M2 as the dimerisation product formed after initial oxidation of M1 (Supplementary Fig. 16). Consistent with this proposal, 19F NMR monitoring of electrolysis aliquots showed rapid conversion of 1m′ into 1m″ at the outset of the reaction (Fig. 4C), and bromide had no discernible effect on this initial oxidation step. When electrolysis of dibenzylamine 1a was interrupted after 2 F mol−1, thiuram M2 was isolated in 48% yield and fully characterised by NMR spectroscopy and XRD (Fig. 4A). Electrolysis of independently prepared M2 under the standard fluorination conditions then furnished the corresponding thiocarbamoyl fluoride in 78% yield, supporting its role as a key intermediate in the process (Fig. 4D1). Role of bromide and fluorination step A catalytic amount of Et4NBr markedly accelerated the conversion of thiuram M2 into the corresponding thiocarbamoyl fluoride. Although the product could still be obtained in the absence of bromide, the yield was substantially lower and a higher charge was required, with concomitant formation of numerous by-products (Supplementary Fig. 19). Bromide proved even more important for the subsequent formation of the N-trifluoromethyl amine, which was obtained in only 13% yield from dibenzylamine 1a under bromide-free conditions (Fig. 4E). CV data showed that bromide (Epox = 0.27 V versus Fc⁺/Fc⁰) is oxidised at lower potential than thiuram M2 (Epox = 0.75 V versus Fc⁺/Fc⁰) (Supplementary Figs. 14 and 16). Although literature precedent suggests that the Br−/Br⁺ redox couple can act as an electrochemical mediator31, CV titration of Et4NBr with increasing concentrations of M2 led only to a shift of the bromide oxidation wave to lower potential, without catalytic current enhancement, arguing against a classical electron-transfer mediation pathway (Fig. 4F). Instead, these observations are consistent with direct chemical reaction between thiuram M2 and electrogenerated bromonium species (Br⁺), leading to bromosulfonium intermediates such as M3 or M3a (Fig. 4G). Subsequent reaction with fluoride is proposed to furnish the thiocarbamoyl fluoride R2NCSF (2X) together with transient brominated intermediates, which undergo further rearrangement and fragmentation. In this way, the proposed sequence allows one equivalent of thiuram to give rise to two equivalents of thiocarbamoyl fluoride, while bromide is released and reoxidised at the anode, sustaining a catalytic bromine cycle. As electrolysis proceeds, UV–Vis, HRMS, and 19F NMR analyses reveal a progressive decrease in M2 and a corresponding increase in thiocarbamoyl fluoride concentration (Supplementary Figs. 6, 8–10, and 12b). Attempts to isolate intermediates M3−M7 were unsuccessful, presumably owing to their inherent instability, although uncoordinated M5 was detected by HRMS (Supplementary Fig. 10). Continuation to N-trifluoromethyl amines Under extended electrolysis, the same bromide-mediated manifold appears to promote further activation of the thiocarbamoyl fluoride en route to the N-trifluoromethyl amine (Fig. 4G). In this proposal, anodically regenerated bromide is reoxidised to bromonium at the anode, after which activation of the carbon centre in R2NCSF enables nucleophilic attack by fluoride to furnish the N-trifluoromethyl amine 3X. This stepwise bromide-assisted fluorination is consistent with earlier reports in which thiuram derivatives react with chlorine- or bromine-based reagents to give N = CX₂ and N−CX₃ products38,39. Further monitoring by 19F NMR and HRMS supported sequential consumption of thiuram M2, accumulation of thiocarbamoyl fluoride, and eventual formation of the N-trifluoromethyl amine under prolonged electrolysis conditions (Supplementary Figs. 9, 11, and 13). Sulfur balance and by-products SEM–EDX and powder XRD analyses of the insoluble solids formed during electrolysis revealed the presence of sulfate (SO₄²−) and elemental sulfur (S₈), indicating that sulfur-containing fragments released during the reaction undergo further oxidation at the anode (Supplementary Figs. 21–24). Collectively, these observations support a mechanistic sequence involving: (i) formation of dithiocarbamate salt M1; (ii) anodic oxidation to thiuram M2; (iii) bromonium-assisted fluorination and cleavage to form thiocarbamoyl fluoride R2NCSF 2X; and (iv) further bromide-mediated activation of R2NCSF en route to N-trifluoromethyl amine 3X. Together, the combination of authentic intermediates, electrochemical analysis, spectroscopy, and product evolution studies provides a coherent picture of this multistep transformation (Fig. 4G). DFT calculations To further interrogate the proposed mechanism, we performed density functional theory calculations, as outlined in the supplementary computational details section. Given that the initial stages of the reaction, culminating in isolable thiuram intermediate M2, are strongly supported by experiment, the calculations were directed towards the later stages of the process, namely the conversion of M2 into thiocarbamoyl fluoride 2X and the subsequent formation of N-trifluoromethyl amine 3X from 2X. The computed free-energy profiles are presented in Figs. 5 and 6, and the overall mechanistic proposal is summarised in Fig. 4G. Computational investigations. Gibbs energy profile showing the formation of 2X from M2 via three distinct pathways: Red trace: oxidation of M2 and subsequent reaction with F–. Blue trace: Oxidation of Br– to Br+ and reaction with M2 via attack on the perthio (C–S–S–C) bridge. Green trace: Oxidation of Br– to Br+ and reaction with M2 via attack on the thioketone (C = S) group. (F = fluorine, int = intermediate, TS = transition state, diss = dissociation). Computational investigations. Gibbs energy profile showing the formation of 3X from 2X via two distinct pathways: Red trace: Oxidation of Br– to Br+ and reaction with 2X. Formation of 3X via SBr– dissociation. Green trace: Oxidation of Br– to Br+ and reaction with 2X. Formation of 3X via concerted association of F– and dissociation of SBr–. Figure 5 summarises the computed pathways for the conversion of M2 into R2NCSF 2X. Three possible scenarios were considered: direct oxidation of M2 followed by fluoride attack (red trace), or oxidation of Br− to Br⁺40,41 followed by reaction of Br⁺ with M2 either at the thioketone sulfur atom (green trace, M3a) or at the disulfide bridge (blue trace, M3). As described in the supplementary computational details, oxidation of Br− was balanced by reduction of two equivalents of FeCp2⁺, whereas oxidation of M2 was balanced by reduction of one equivalent of FeCp2⁺, thereby maintaining an internally consistent electron count for comparison of the computed pathways. Among the three possibilities, oxidation of Br⁻ followed by reaction of Br⁺ at the C = S group of M2 was calculated to be the most favourable initial step. By contrast, the direct oxidation pathway, although formally viable, would generate 2X, together with a disulfide radical fragment, after fluoride addition and dissociation of the intermediate M2F. This route (red trace) is therefore less consistent with the experimental requirement for bromide and was not pursued further. The remaining bromide-mediated pathways were examined in greater detail. In the blue pathway, Br⁺ reacts with one of the sulfur atoms of the S−S bridge to give intermediate M3. Although formation of M3 is endoergic, it is followed by fragmentation to a tightly associated complex, M3diss, which then reacts readily with F− to give 2X and M4. In the green pathway, the reaction of Br⁺ with the thioketone sulfur atom is exoergic and furnishes M3a. Subsequent fluoride attack gives M3int, which rearranges through bromine migration to form M4adiss and then dissociates to M4a and 2X. Further isomerisation of M4a to M4, followed by fluoride attack, affords a second equivalent of 2X together with S2Br−. The elongated S−Br bond in S2Br− suggests that it should dissociate readily into Br− and S2, with the latter expected to oligomerise to elemental sulfur (S8), in agreement with the experimental elemental analysis. Figure 6 shows the corresponding calculations for the conversion of 2X into N-trifluoromethyl amine 3X. In this case, the calculations again support initial oxidation of Br− to Br⁺, followed by reaction with 2X to give M5. Fluoride then associates with M5 to form a weakly bound complex, M5F, before passage through a submerged barrier to generate M6. From M6, two mechanistic possibilities were considered. In the first, dissociation of SBr− occurs before fluoride attack, generating M7 en route to 3X. In the second, fluoride first coordinates to form M6F, after which C−F bond formation and SBr− departure occur in a concerted step. The latter pathway is markedly lower in free energy and is therefore the preferred mechanism for the formation of 3X. Overall, the calculations support the bromide-mediated mechanism proposed in Fig. 4G and are consistent with the experimental observations. In particular, they identify bromide oxidation followed by chemical reaction with sulfur-containing intermediates as more favourable than direct oxidation of M2. The calculated free-energy profiles further suggest that the overall transformation is thermodynamically favourable. In summary, we report a practical and operationally simple one-pot electrochemical method for the divergent conversion of secondary amines into thiocarbamoyl fluorides and N-trifluoromethyl amines, using readily available, bench-stable, and near-neutral Et3N·3HF as the fluoride source. Under the reaction conditions, secondary amines are converted in situ into dithiocarbamate intermediates, which undergo anodic oxidation to thiuram species before furnishing either thiocarbamoyl fluorides ( ≈ 4 h, 7 F mol−1) or, upon extended electrolysis, N-trifluoromethyl amines ( ≈ 11.4 h, 20 F mol−1). The method proceeds under mild conditions, requires minimal purification for many substrates, and displays broad functional-group tolerance, including carbonyls, alkenes, alkynes, nitriles, heterocycles, protected amines, and pharmaceutical derivatives. Mechanistic studies support a pathway involving dithiocarbamate and thiuram intermediates, followed by bromide-assisted fluorination. Overall, this work provides practical electrochemical access to valuable fluorinated nitrogen-containing building blocks and highlights the potential of this strategy for late-stage functionalization in medicinal chemistry and materials science. Methods General procedure for thiocarbamoyl fluoride synthesis Amine 1 (0.4 mmol, 1.0 equiv.), DABCO (45.0 mg, 0.4 mmol, 1.0 equiv.) or KOH (22.0 mg, 0.4 mmol, 1.0 equiv.), and CS2 (152 mg, 2.0 mmol, 5.0 equiv.) were added to a 5 mL one-compartment ElectraSyn 2.0 vial to generate the dithiocarbamate salt in situ. Acetonitrile (ACN, 5 mL, 0.08 M), Et4NBr (16.8 mg, 0.08 mmol, 0.2 equiv.), and Et3N·3HF (120 μL, 0.8 mmol, 2.0 equiv.) were then added. The resulting solution was electrolysed at a current density of 11.11 mA cm−2 to 7 F mol−1 (3.75 h) using a platinum anode (WE) and platinum cathode (CE). Reaction progress was monitored by HPLC. After complete consumption of the starting amine, the reaction mixture was quenched with saturated aqueous NaHCO3 and extracted with DCM. The combined organic layers were dried over Na2SO4, and the solvent was removed under reduced pressure. The crude residue was filtered through silica and, where necessary, purified by flash column chromatography. General procedure for N-trifluoromethyl amine synthesis Amine 1 (0.4 mmol, 1.0 equiv.), KOH (22.4 mg, 0.4 mmol, 1.0 equiv.), and CS2 (152 mg, 2.0 mmol, 5.0 equiv.) were added to a 5 mL one-compartment ElectraSyn vial to generate the dithiocarbamate salt in situ. Acetonitrile (ACN, 5 mL, 0.08 M), Et4NBr (84.0 mg, 0.4 mmol, 1.0 equiv.), and Et3N·3HF (196 μL, 1.2 mmol, 3.0 equiv.) were then added. The solution was electrolysed at a current density of 22.2 mA cm−2 to 20 F mol−1, unless otherwise stated, using a platinum anode (WE) and platinum cathode (CE). Reaction progress was monitored by 19F NMR until complete consumption of the N-CSF intermediate. The solvent was then removed under reduced pressure, and the residue was diluted with hexane and filtered through Celite to afford the final product. Full optimisation, substrate-scope, experimental, and characterisation data, including NMR, FTIR, UV, CV, HRMS, elemental analysis, SEM-EDX, and X-ray data, are provided in the Supplementary Information. Supplementary information Supplementary information Transparent Peer Review file Acknowledgements The authors thank the University of Greenwich analytical facilities for technical support. Author contributions F.T.P., D.F.C., K.T., and J.S.B. performed the reaction optimisation and substrate-scope studies. F.T.P. and D.F.C. carried out the application studies, performed compound characterisation, and contributed to the preparation of the draft. F.T.P. performed the scale-up reactions and mechanistic experiments. C.A.I.G. carried out the HRMS analysis. V.K.E. assisted with NMR analysis. A.H. performed the elemental analysis and SEM-EDX studies. E.R.C. carried out the X-ray crystallographic analysis. A.J.H.M.M. contributed to the DFT calculations. K.L. conceived the project, carried out the initial proof-of-concept experiments that established its viability, secured funding, provided resources, and supervised the research. All authors contributed to the revision and editing of the manuscript. Peer review Peer review information Nature Communications thanks Jie Liu, Ji-Chang Xiao, and the other, anonymous, reviewer for their contribution to the peer review of this work. A peer review file is available. Funding K.L., J.S.B., and F.T.P. gratefully acknowledge support from the European Innovation Council (EIC) Pathfinder programme (project no. 101070788, DualFlow). D.F.C. thanks the European Commission for an ERASMUS+ grant. K.T. acknowledges support from the Japan Society for the Promotion of Science (JSPS). Data availability The data supporting the findings of this study are available within the paper, the Supplementary Information and the Source Data file provided with this article. The X-ray crystallographic data generated in this study have been deposited at the Cambridge Crystallographic Data Centre (CCDC) under deposition numbers CCDC 2497049 (M1), CCDC 2497050 (M2), and CCDC 2497048 (M10). These data can be obtained free of charge from the Cambridge Crystallographic Data Centre via https://www.ccdc.cam.ac.uk/structures/ or https://www.ccdc.cam.ac.uk/data_request/cif. All other supporting data, including experimental procedures, compound characterisation data, and optimised geometries, are provided in the Supplementary Information. Data supporting the findings of this manuscript are also available from the corresponding author upon request. Competing interests The authors declare no competing interests. Footnotes Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Supplementary information The online version contains supplementary material available at 10.1038/s41467-026-74660-2. References Associated Data Supplementary Materials Supplementary information Transparent Peer Review file Data Availability Statement The data supporting the findings of this study are available within the paper, the Supplementary Information and the Source Data file provided with this article. The X-ray crystallographic data generated in this study have been deposited at the Cambridge Crystallographic Data Centre (CCDC) under deposition numbers CCDC 2497049 (M1), CCDC 2497050 (M2), and CCDC 2497048 (M10). These data can be obtained free of charge from the Cambridge Crystallographic Data Centre via https://www.ccdc.cam.ac.uk/structures/ or https://www.ccdc.cam.ac.uk/data_request/cif. All other supporting data, including experimental procedures, compound characterisation data, and optimised geometries, are provided in the Supplementary Information. Data supporting the findings of this manuscript are also available from the corresponding author upon request.