dB to Linear Converter
Convert decibels (dB) to linear power or amplitude ratios and vice versa for audio, RF, and signal processing applications.
Updated
What is the dB to Linear Converter?
The dB to Linear Converter is a precision tool designed for engineers, audio technicians, and scientists to seamlessly convert between decibels (dB) and linear power or amplitude ratios. Whether you're working with audio signals, RF systems, or any application involving logarithmic signal representations, this tool provides accurate, bidirectional conversions with support for custom reference values.
Decibels are a logarithmic unit used to express the ratio of two values of a physical quantity, commonly used in acoustics, electronics, and telecommunications. This converter handles both power ratios (10dB/10) and amplitude/voltage ratios (10dB/20), ensuring correct calculations for your specific use case.
Why Use This Tool?
- Bidirectional Conversion: Convert dB to linear and linear to dB with a single interface.
- Power and Amplitude Modes: Select the appropriate conversion type for your application.
- Custom Reference Values: Set reference levels for context-specific calculations (e.g., dBm, dBV, dB SPL).
- Instant Results: Real-time computation as you type.
- Copyable Output: Easily copy formatted results for documentation or further use.
- Error Handling: Clear validation messages for invalid inputs.
- No Dependencies: Works entirely client-side with no external API calls.
How it works
Mathematical Foundations
The dB to Linear Converter is based on the fundamental logarithmic relationships between decibels and linear ratios. The conversion depends on whether the dB value represents a power ratio or an amplitude/voltage ratio.
Power Ratio Conversion
For power quantities (such as power gain, power loss, or signal strength in watts):
- dB to Linear:
Linear = Reference × 10^(dB/10) - Linear to dB:
dB = 10 × log10(Linear / Reference)
Power ratios are used when comparing power levels directly, such as in RF amplifiers or audio power amplifiers.
Amplitude/Voltage Ratio Conversion
For amplitude quantities (such as voltage, current, or sound pressure):
- dB to Linear:
Linear = Reference × 10^(dB/20) - Linear to dB:
dB = 20 × log10(Linear / Reference)
Amplitude ratios are used when comparing voltage levels, sound pressure levels, or any root-power quantities.
Reference Values
The reference value defines the 0 dB baseline for your conversion. It is context-dependent:
| Context | Reference Value | Unit | Description |
|---|---|---|---|
| Audio (SPL) | 20 μPa | Pascals | 0 dB SPL = 20 micropascals |
| RF (dBm) | 1 mW | Watts | 0 dBm = 1 milliwatt |
| Voltage (dBV) | 1 V | Volts | 0 dBV = 1 volt |
| Voltage (dBu) | 0.7746 V | Volts | 0 dBu = √(600Ω × 1mW) |
| Dimensionless | 1 | — | Generic ratio (default) |
The reference value directly affects your conversion results. For example:
3 dBwith reference1= 1.995 linear power3 dBwith reference10= 19.95 linear power
Conversion Process
- Select your conversion type (
PowerorAmplitude). - Enter either a dB value or a linear value — the tool automatically detects which you're providing.
- Set your reference value (defaults to
1for dimensionless ratios). - View instant results, including:
- The converted linear or dB value
- The reference value used
- The conversion type
Practical Examples
Audio Engineering
Convert a microphone's -40 dB SPL sensitivity to linear amplitude:
- Type: Amplitude
- dB: -40
- Reference: 0.00002 (20 μPa)
- Result:
0.00002 × 10^(-40/20) = 2 × 10^-6 Pa
RF Systems
Convert a 20 dBm signal to linear power:
- Type: Power
- dB: 20
- Reference: 0.001 (1 mW)
- Result:
0.001 × 10^(20/10) = 0.1 W(100 mW)
Signal Processing
Convert a voltage gain of 5 to dB:
- Type: Amplitude
- Linear: 5
- Reference: 1
- Result:
20 × log10(5/1) ≈ 13.98 dB
Examples
Convert 3 dB Power Gain to Linear
Calculate the linear power ratio for a 3 dB power gain using the power conversion formula.
Convert -20 dB Amplitude to Linear
Calculate the linear amplitude ratio for a -20 dB attenuation using the amplitude conversion formula.
Convert Linear Power Ratio 2 to dB
Calculate the decibel value for a linear power ratio of 2.
Frequently asked questions
What is the difference between dB for power and dB for amplitude?
What is the difference between dB for power and dB for amplitude?
The difference lies in the mathematical relationship. Decibels for power use a factor of 10 in the conversion formula (10^(dB/10)), while decibels for amplitude (voltage, current, sound pressure) use a factor of 20 (10^(dB/20)). This is because power is proportional to the square of amplitude, so the logarithmic relationship changes accordingly.
For example:
- A +3 dB increase in power ≈ 1.995× the power.
- A +3 dB increase in amplitude ≈ 1.414× the amplitude.
Why do I need to specify a reference value?
Why do I need to specify a reference value?
The reference value defines your 0 dB baseline. Without a reference, dB values are meaningless because decibels are inherently relative measurements. Common references include:
- dBm: 1 milliwatt (0.001 W)
- dBV: 1 volt
- dB SPL: 20 micropascals (sound pressure)
- dBFS: Full scale (digital systems) If you're working with dimensionless ratios (e.g., gain/loss), use a reference of 1.
Can I convert from linear to dB?
Can I convert from linear to dB?
Yes! The tool supports bidirectional conversion. Simply enter your linear value in the "Linear Value" field, and the tool will automatically calculate the corresponding dB value using the appropriate formula based on your selected type (Power or Amplitude).
What happens if I enter a negative dB value?
What happens if I enter a negative dB value?
Negative dB values are perfectly valid and represent attenuation or values below the reference level. For example:
- -3 dB power = 0.5 linear (half the reference power)
- -20 dB amplitude = 0.1 linear (one-tenth the reference amplitude) The tool handles negative values correctly in all calculations.
Why does the tool show an error for zero or negative reference values?
Why does the tool show an error for zero or negative reference values?
The reference value must be greater than zero because:
- Logarithms of zero or negative numbers are undefined in real mathematics.
- A reference of zero would make the ratio calculation impossible (division by zero).
- Negative reference values don’t have physical meaning in signal measurements. The tool validates this to prevent mathematically invalid operations.
How precise are the calculations?
How precise are the calculations?
The tool uses JavaScript’s native Math.pow() and Math.log10() functions, which provide double-precision floating-point accuracy (approximately 15–17 significant digits). Results are displayed with 6 decimal places by default, but the underlying calculations maintain full precision.
What is the difference between dB and dBm?
What is the difference between dB and dBm?
dB (decibel) is a dimensionless unit representing a ratio between two values. dBm (decibel-milliwatt) is an absolute unit that references 1 milliwatt. To use dBm values in this tool:
- Set the reference to 0.001 (1 milliwatt).
- Enter your dBm value as the dB input.
- The linear result will be in watts.
Can I use this tool for audio applications?
Can I use this tool for audio applications?
Absolutely! This tool is ideal for audio engineering tasks such as:
- Converting microphone sensitivity specifications (e.g., -40 dB to linear voltage).
- Calculating amplifier gains (e.g., +26 dB to linear power ratio).
- Working with sound pressure levels (SPL).
- Converting between dBV, dBu, and linear voltage values. For audio, you’ll typically use the Amplitude conversion type.
Does the tool support impedance matching calculations?
Does the tool support impedance matching calculations?
The tool itself doesn’t directly account for impedance, but you can use it as part of impedance matching workflows. Remember:
- Power conversion is independent of impedance.
- Voltage conversion assumes the same impedance on both sides.
- For different impedances, you’ll need to manually adjust the reference value or apply additional calculations.
How do I copy the results?
How do I copy the results?
The results are displayed in a code editor at the bottom of the tool. Simply click the copy button (📋) in the top-right corner of the results section to copy the formatted output to your clipboard.
Related tools
More utilities you might find handy.
Base64 Encoder / Decoder for Text, Images & Docs
Instantly convert plain text, images, PDFs, and documents to Base64 strings or decode Base64 data arrays back into downloadable file assets.
Binary to Hex
Convert binary numbers to hexadecimal quickly with support for padding, two's complement, bit-widths, grouping and BigInt-sized inputs
Camel, Snake, Kebab Case Converter
Effortlessly convert text between camelCase, snake_case, kebab-case, PascalCase, and more for developers and writers.