Background: Midazolam is used for sedation before diagnostic and therapeutic medical procedures. It is an imidazole benzodiazepine that has depressant effects on the central nervous system (CNS) with rapid onset of action and few adverse effects. The drug can be administered by several routes including oral, intravenous, intranasal and intramuscular. Objectives: To determine the evidence on the effectiveness of midazolam for sedation when administered before a procedure (diagnostic or therapeutic). Search methods: We searched the Cochrane Central Register of Controlled Trials (CENTRAL to January 2016), MEDLINE in Ovid (1966 to January 2016) and Ovid EMBASE (1980 to January 2016). We imposed no language restrictions. Selection criteria: Randomized controlled trials in which midazolam, administered to participants of any age, by any route, at any dose or any time before any procedure (apart from dental procedures), was compared with placebo or other medications including sedatives and analgesics. Data collection and analysis: Two authors extracted data and assessed risk of bias for each included study. We performed a separate analysis for each different drug comparison. Main results: We included 30 trials (2319 participants) of midazolam for gastrointestinal endoscopy (16 trials), bronchoscopy (3), diagnostic imaging (5), cardioversion (1), minor plastic surgery (1), lumbar puncture (1), suturing (2) and Kirschner wire removal (1). Comparisons were: intravenous diazepam (14), placebo (5) etomidate (1) fentanyl (1), flunitrazepam (1) and propofol (1); oral chloral hydrate (4), diazepam (2), diazepam and clonidine (1); ketamine (1) and placebo (3); and intranasal placebo (2). There was a high risk of bias due to inadequate reporting about randomization (75% of trials). Effect estimates were imprecise due to small sample sizes. None of the trials reported on allergic or anaphylactoid reactions. Intravenous midazolam versus diazepam (14 trials; 1069 participants) There was no difference in anxiety (risk ratio (RR) 0.80, 95% confidence interval (CI) 0.39 to 1.62; 175 participants; 2 trials) or discomfort/pain (RR 0.60, 95% CI 0.24 to 1.49; 415 participants; 5 trials; I2 = 67%). Midazolam produced greater anterograde amnesia (RR 0.45; 95% CI 0.30 to 0.66; 587 participants; 9 trials; low-quality evidence). Intravenous midazolam versus placebo (5 trials; 493 participants) One trial reported that fewer participants who received midazolam were anxious (3/47 versus 15/35; low-quality evidence). There was no difference in discomfort/pain identified in a further trial (3/85 in midazolam group; 4/82 in placebo group; P = 0.876; very low-quality evidence). Oral midazolam versus chloral hydrate (4 trials; 268 participants) Midazolam increased the risk of incomplete procedures (RR 4.01; 95% CI 1.92 to 8.40; moderate-quality evidence). Oral midazolam versus placebo (3 trials; 176 participants) Midazolam reduced pain (midazolam mean 2.56 (standard deviation (SD) 0.49); placebo mean 4.62 (SD 1.49); P < 0.005) and anxiety (midazolam mean 1.52 (SD 0.3); placebo mean 3.97 (SD 0.44); P < 0.0001) in one trial with 99 participants. Two other trials did not find a difference in numerical rating of anxiety (mean 1.7 (SD 2.4) for 20 participants randomized to midazolam; mean 2.6 (SD 2.9) for 22 participants randomized to placebo; P = 0.216; mean Spielberger's Trait Anxiety Inventory score 47.56 (SD 11.68) in the midazolam group; mean 52.78 (SD 9.61) in placebo group; P > 0.05). Intranasal midazolam versus placebo (2 trials; 149 participants) Midazolam induced sedation (midazolam mean 3.15 (SD 0.36); placebo mean 2.56 (SD 0.64); P < 0.001) and reduced the numerical rating of anxiety in one trial with 54 participants (midazolam mean 17.3 (SD 18.58); placebo mean 49.3 (SD 29.46); P < 0.001). There was no difference in meta-analysis of results from both trials for risk of incomplete procedures (RR 0.14, 95% CI 0.02 to 1.12; downgraded to low-quality evidence). Authors' conclusions: We found no high-quality evidence to determine if midazolam, when administered as the sole sedative agent prior to a procedure, produces more or less effective sedation than placebo or other medications. There is low-quality evidence that intravenous midazolam reduced anxiety when compared with placebo. There is inconsistent evidence that oral midazolam decreased anxiety during procedures compared with placebo. Intranasal midazolam did not reduce the risk of incomplete procedures, although anxiolysis and sedation were observed. There is moderate-quality evidence suggesting that oral midazolam produces less effective sedation than chloral hydrate for completion of procedures for children undergoing non-invasive diagnostic procedures.