1 Introduction

Esters are recognized as indispensable functionalities by virtue of their use in most fields of chemistry. The classical acid-catalyzed Fischer–Speier esterification [1], Scheme 1A, directly converts carboxylic acids to esters with alcohols. Despite its inherent conceptual simplicity, the method is undermined due to the acidic conditions in combination with elevated temperatures typically used, and is thus not applicable in engaging structurally more demanding substrates. Instead, synthetic chemists often turn to various carboxylic acid derivatives or, as in Steglich esterification [2], the addition of a coupling reagent that activates carboxylic acids toward substitution reactions. Common to the aforementioned methods is that the oxidation state + III of the carbonyl carbon already installed a priori. Frequently, however, chemists want to transform groups of lower oxidation states into esters which require either a separate stepwise oxidation of the group to the level necessitated in the foregoing methods or, preferably, the oxidation is conducted in parallel with the esterification.

Scheme 1
scheme 1

Various approaches to the formation of esters: A two classical methods, B oxidative esterification of aldehydes, C esterification of acetals, D our direct visible-light-mediated esterification of aldehydes

Several protocols for oxidatively converting aldehydes to esters in one-pot have been reported in literature and their pros and cons thoroughly reviewed by Wolf and co-workers [3]. These methods range from various catalytic approaches, e.g., electro-catalysis, transition metal catalysis and NHC catalysis. Furthermore, various oxidants, in conjunction with a catalyst, have been reported in this context, such as iodine [4, 5] oxone [6], tert-butyl hydroperoxide [7], hydrogen peroxide [8, 9], manganese (IV) oxide [10] and TCCA [11]. In more modern approaches [12, 13], oxygen from air has been successfully employed in conjunction with NHC catalysis by the Sundén group (Scheme 1B) [14]. Other examples are based on the strategy of transforming the aldehyde in situ to an acetal that subsequently converts oxidatively to an ester [15, 16]. One such approach was reported by McDonald and co-workers [17] that developed a direct method by converting aldehydes in situ to hemiacetal hypo-iodites using NIS as the oxidant. Interestingly, this method was not compatible with NCS and only with limited success using NBS. The multitude of methods are complementary in that no single method is without drawbacks, some suffer from expensive or harsh conditions, others from limited substrate scope. Generally, the reaction times are rather long for the majority of the methods ranging from several hours up to 5 days.

As part of our ongoing research efforts, we recently disclosed a visible-light-mediated Fe-catalyzed approach for turning acetals into esters with BrCCl3 serving as the terminal oxidant [18]. Further reports on esterification of acetals exist, utilizing NBS with AIBN initiator [19], UV-light-induced excited-state acetone [20] or peroxides under elevated temperature (Scheme 1C) [21, 22]. Nevertheless, starting directly from acetals can be inconvenient as they rather easily revert to aldehydes on storage and often need to be synthesized. Therefore, we aimed to address this shortcoming by forming acetals in situ and converting these to esters using our visible-light-mediated approach. Furthermore, during our recent efforts, we observed that In(OTf)3, in some cases, also is a competent catalyst for the esterification of acetals. Taken together with the efficient acetalization catalyzed by In(OTf)3 reported by Smith [23], we anticipated that a one-pot visible-light direct oxidative esterification methodology of aldehydes would be feasible (Scheme 1D).

2 Results and discussion

For the optimization of this direct esterification, benzaldehyde was chosen as a suitable model substrate. When allowing benzaldehyde to pre-form the acetal by reaction with trimethyl orthoformate (1 eq.) and In(OTf)3 (1 mol%) in DCE for 5 min followed by addition of BrCCl3 (3 eq.) and irradiation with blue LEDs for a further 18 h provided methyl benzoate in 32% yield by 1H-NMR (see Table 1).

Table 1 Reaction conditions: benzaldehyde (0.2 mmol), In(OTf)3 (1 mol%), brominating agent (1.2–2.0 eq., added after pre-stirring), solvent (0.5 mL) and trimethyl orthoformate (1.0 eq.) under blue LED irradiation at r.t. for 10 s–18 h under argon atmosphere

A solvent screen showed that DCE provided the methyl benzoate with the highest yield at a concentration of 0.4 M (entry 1).

Next, alternative oxidants other than BrCCl3 were screened and NBS was established as the most competent one providing methyl benzoate in 75% yield after irradiation with blue LEDs for 18 h (entry 6). A re-visit of solvents confirmed that DCE is retained as the most suitable solvent also with NBS as the oxidant (entries 7 and 8). Notably, the reaction does not require the use of anhydrous DCE.

Scheme 2
scheme 2

Reactions were conducted at the scale of 0.2 mmol with respect to the aldehyde. 0.4 M concentration and irradiation with blue LEDs for 5 min, unless otherwise specified. Yields are those of isolated products. aReaction time 10 s. bReaction time 1 h. c2 eq. NBS

Control experiments omitting either the irradiating source (entry 9) or In(OTf)3 (entry 10) showed a significant reduction in yields, 41% and 13%, respectively. This indicates that both In(OTf)3 and blue light irradiation accelerate the esterification. The latter result is rationalized by a slow, but non-zero, rate of acetal formation in the absence of a Lewis acid. The former result (entry 9) is interesting as it demonstrates that an intermediate acetal is converted to an ester by NBS without the addition of a radical initiator or light, contrary to previously reported procedures [19], and alludes to an In(OTf)3-assisted initiation. In another control experiment, the commercially available benzaldehyde dimethyl acetal was subjected to NBS and blue light irradiation in the absence of In(OTf)3. These conditions still generated the ester in 95% yield, demonstrating that visible-light itself promotes the reaction with NBS. The same experiment starting from the acetal, but using BrCCl3 as the oxidant, did require In(OTf)3 for the conversion to the ester.

Having established reaction conditions to cleanly transform benzaldehyde to its methyl ester the reaction time was successively reduced down to 1 h without any loss in efficacy. At this point, the necessity of pre-stirring to form the acetal was reinvestigated, as our initial efforts showed it to be crucial for a clean reaction. Satisfyingly, with the modified conditions, the reaction turned out to work even better simply mixing all reagents together and directly irradiating with blue light to afford the ester in 84% yield (entry 16). Remarkably, reducing the time to 5 min gave the best result with 91% yield and even at a reaction time of an astonishing 10 s, methyl benzoate was formed in excellent yield of 82% (entries 17 and 19, respectively). Thus, the optimized reaction for the photo-mediated direct esterification of aldehydes involved the conditions: trimethyl orthoformate (1.0 eq.), In(OTf)3 (1 mol%), NBS (1.2 eq.), DCE (0.5 mL) and blue LEDs irradiation under stirring for 5 min (91%, entry 19).

With the optimized reaction conditions at hand, we next turned our attention to the scope of the aromatic moiety of the aldehydes (Scheme 2). First, methyl benzoate (1a) could be isolated in 71% yield after irradiating the reaction for 10 s, and yet a better yield of 91% could be achieved when employing the standard conditions of 5 min. Care should be taken as methyl benzoate seemed abnormally volatile, possibly due to a formed azeotropic mixture.

The reaction demonstrates a broad scope in terms of electronic effects with all isolated yields ranging between 71 and 99%. Electron-rich 4-methoxy benzaldehyde was converted to (1b) and isolated in 91% yield and its congener 4-trifluoromethoxy benzaldehyde in a good 81% yield (1f). Electron-deficient 4-formylbenzonitrile smoothly converted to the ester (1d) in also 81% yield. For the more strongly electron-deficient 4-nitro benzaldehyde and 2-nitro benzaldehyde, the reaction time needed extension to 1 h, although, with excellent yields of 91% and 99%, respectively. The longer reaction time for these substrates is likely due to a slower dissociation to form an intermediate cation (see Scheme 5), greatly destabilized by such potent electron withdrawing groups. When subjecting 2-formylbenzoic acid to the reactions, both the aldehyde and carboxylic acid functionalities transformed into methyl esters (1j) wherefore two equivalents of trimethyl orthoformate were crucial for obtaining a clean reaction affording the di-ester in 80% yield. The reaction also proceeds well with fused ring systems and heteroaromatics as exemplified by (1k) and (1l).

Next, we aimed for conditions that could diversify the ester functionalities beyond methyl esters (Scheme 3). Substituting the trimethyl orthoformate for triethyl orthoformate afforded the corresponding ethyl ester in 89% yield (2a). There is a greater variety of alcohols than ortho-esters which would enable a more extensive product scope if conditions also allowed for the direct use of alcohols. When primary alcohol isobutyl alcohol (2 eq.) is used the corresponding isobutyl ester (2a) was formed in 95% yield. Remarkably, using tert-butanol gave the tert-butyl ester in very good yield (81%, 2c). To succeed with this reaction utilizing alcohols, the reaction time needed to be extended to 4 h, and the stoichiometry of NBS to two, which still provides satisfying conditions for this challenging tert-butyl ester synthesis.

Scheme 3
scheme 3

Reactions were conducted at 0.2 mmol scale, 0.4 M concentration and irradiated with blue LEDs. Yields are those of isolated products. Ar = 4-biphenyl-. aReaction time = 5 min, bReaction time = 4 h, cReaction time = 1 h. d1.2 eq. NBS, e2 eq. NBS

In situ formation of cyclic acetals would result in a doubly functionalized ester by the additional incorporation of a bromide, suitable for further functionalization. When ethylene glycol was used the 2-bromoethyl 4-biphenyl carboxylate (2d) was obtained in a moderate 59% yield. Additionally, 1,3-propanediol and 1,2-cyclohexanediol were evaluated, yielding the corresponding products in 37% and 22% yields, respectively. However, the significant drops in yields are attributed to the isolatable co-formation of di-ester dimers, formed in ratio 95:5, 80:20, and 71:29, respective from 2d, 2e and 2f.

Next, we investigated the opportunity of engaging aliphatic aldehydes in the esterification. Aldehydes with a secondary or tertiary α-carbon underwent esterification within 1 h reaction time. However, these substrates also produced α-brominated esters as the main product for tertiary substrates (2i vs 2j) and as a minor product for secondary substrates (2g vs 2h). It was necessary to use 2 eq. of NBS for full conversion of the aldehydes and bromination could not be prevented by decreasing the equivalents of NBS as the bromination occurred in competition with the esterification process. For quaternary α-carbons, an unexpected compound of proposed structure 2k was formed as the sole product in 51% yield.

With the investigation into aliphatic aldehydes came the interest of application toward cyclized hemiacetals. Indeed, the cyclic hemiacetal (Scheme 4) converted to the lactone 3 (80% yield); however, the formation was observed also in the absence of In(OTf)3. Consequently, in the case where an acetal or hemiacetal can form readily, there is no necessity for a Lewis acid to promote the esterification process.

Scheme 4
scheme 4

Lactone formation by oxidation of a hemiacetal

A plausible mechanism is depicted in Scheme 5. The first step of the mechanism is a proposed Lewis acid-catalyzed acetalization of the aldehyde by In(OTf)3. However, we cannot rule out the possibility of the reaction proceeding from an intermediary hemiacetal. Next, visible-light-induced homolytic cleavage of molecular bromine formed from NBS affords two bromine radicals that can abstract the activated hydrogen from the acetal (or hemiacetal) from where a propagating mechanism follows. UV–Vis experiments revealed a very efficient formation of molecular bromine from NBS in the presence of alcohol under blue light irradiation. Even trace amounts of alcohol, present when utilizing orthoformate, are enough to efficiently mediate this reaction. In addition, In(OTf)3 further accelerates this process (see SI for experimental details). The so-formed acetal radical abstracts a bromine from NBS (or molecular bromine) to form an unstable intermediate that collapses by expelling a bromide ion and, thus, forms the carbonyl group. Finally, the so-formed bromide ion acts as a nucleophile and in a substitution reaction demethylates the carbonyl oxygen to give the desired ester.

Scheme 5
scheme 5

Proposed mechanism

In summary, a simple and highly efficient visible-light-mediated direct esterification of aldehydes, via acetals or hemiacetals, was developed using In(OTf)3 as a catalyst in conjunction with NBS as oxidant (and brominating agent for intermediate cyclic acetals). For some substrates, the reaction goes practically to completion within a few seconds. Other substrates still converted rapidly to esters but required 5 min to 1 h of stirring under irradiation. The reaction shows an extensive scope of different electronic properties of various benzaldehydes. Furthermore, the reaction can employ various alcohols, including bulky tert-butanol, to form the corresponding esters. Some limitations in selectivity were observed in the case for aliphatic aldehydes that, along with the ester, also produced α-brominated esters to various extents. Such limitation could conceivably be addressed by looking at alternative oxidants suitable within the context of visible-light and In(OTf)3 catalysis.