---
title: "Free XPS Viewer and Peak Fitting Online: Shirley, Doublets, Atomic % | MolDraw"
url: https://www.moldraw.com/tools/xps-viewer/index.html
description: "Free online XPS viewer. Open CSV, VAMAS (.vms) or CasaXPS text, charge correct to C 1s, subtract a Shirley or linear background, fit Gaussian-Lorentzian peaks with spin-orbit doublets, get atomic % and identify elements in a survey."
lang: en
publisher: LabCanvas Private Limited
generated: 2026-11-29
---
[MolDraw](https://www.moldraw.com/) › [Chemistry tools](https://www.moldraw.com/tools/) › XPS Viewer

# Free XPS Viewer and Peak Fitting

**In short:** Open CSV, VAMAS (.vms) or CasaXPS text, charge correct to C 1s, subtract a Shirley or linear background, fit Gaussian-Lorentzian peaks with spin-orbit doublets, get atomic % and identify elements in a survey. It is free, works in your web browser and needs no download.

Open XPS spectra, charge correct to C 1s, subtract a Shirley background and fit peaks with spin-orbit doublets. Get atomic % from the areas and find elements in a survey scan. Your files stay on your device.

Open XPS file

or drop it here. VAMAS (.vms), CasaXPS text export or CSV/TXT.

Load example:

Examples are simulated and free to reuse. [Download the sample .vms](https://www.moldraw.com/tools/xps-viewer/sample-xps.vms) (survey, C 1s and O 1s).

## How to use the XPS viewer

1. Open a VAMAS, CasaXPS or CSV file, or press an example button.
2. If your file uses kinetic energy, set the energy axis to Kinetic and pick Al or Mg Kα.
3. Press Set from C 1s to charge correct, or type the shift.
4. Pick a region. Set the core level (for example C 1s), the background and the fit window.
5. Press Auto peaks, or use Add peak and tap the plot. For C 1s you can load the template. Then press Fit.
6. Edit, lock or drag peaks, set doublets, and press Fit again. Check the residual line under the spectrum.
7. Read the atomic % box, or the element list for a survey, and export a PNG or CSV with the fit table.

## Reading an XPS spectrum

XPS (X-ray photoelectron [spectroscopy](https://www.moldraw.com/guides/)) measures the energy of electrons knocked out of the top few nanometres of a sample. Each element has core levels at known **binding energies**, so a survey scan tells you which elements are there. Small shifts of a peak, the **chemical shift**, tell you the chemical state: C-C, C-O, C=O and O-C=O in a polymer, or Si and SiO2 on a wafer.

To compare states, remove the background (usually **Shirley**) and fit the peak with components. p, d and f levels split into **spin-orbit doublets** with a fixed split and area ratio, for example Fe 2p3/2 and Fe 2p1/2. Dividing each area by a **sensitivity factor** gives the atomic %. These numbers depend on your instrument, so use them as estimates unless you have your own factors.

## Frequently asked questions

### Is my data uploaded?

No. Files are read, fitted and drawn in your browser only.

### Which files can I open?

VAMAS .vms files (the ISO 14976 standard most XPS software can export, regular scans), CasaXPS text exports with K.E. or B.E. columns, and plain CSV or TXT with an energy column and an intensity column. Files with several regions show each region as a tab.

### How do I convert kinetic energy to binding energy?

Set the energy axis to Kinetic and pick the X-ray source. The tool uses BE = hν − KE with hν = 1486.6 eV for Al Kα or 1253.6 eV for Mg Kα, or a value you type. The spectrometer work function is assumed to be included in the calibration, as most instruments do.

### How does charge correction work?

Insulating samples charge up, so every peak moves by the same amount. The usual fix is to move the C-C / C-H peak of adventitious carbon to 284.8 eV. Press Set from C 1s, or type the shift. The reference value can be changed (some labs use 285.0 eV). This reference is a convention with known limits, so say which one you used.

### What is a Shirley background?

A step-shaped background that rises on the high binding energy side of a peak, in proportion to the peak area at lower binding energy. It models electrons that lose a little energy on the way out. A linear background is a straight line between the two ends of the fit window.

### What line shape is used for the peaks?

A Gaussian-Lorentzian product, GL(m), the same kind used by CasaXPS. m is the Lorentzian percentage: 0 is pure Gaussian and 100 is pure Lorentzian. 30 is a common start for polymers and oxides. Metals often need an asymmetric shape, which this tool does not model, so fit metal peaks with care.

### How are spin-orbit doublets handled?

Set a peak to a p, d or f doublet and the partner peak is added at a fixed split with a fixed area ratio: 1:2 for p (2p1/2 : 2p3/2), 2:3 for d and 3:4 for f. The split comes from a built-in table for common elements and can be edited.

### How accurate are the atomic % values?

They are only as good as the sensitivity factors. The built-in factors are approximate Scofield-type values for Al Kα and do not include your analyser transmission or escape depth. For real numbers, enter the factors from your instrument library. The survey gives a rougher estimate than fitted narrow scans.

### Where do the suggested assignments come from?

From a table of typical binding energies for common elements and chemical states, written for this tool from general knowledge. Values in the literature spread by a few tenths of an eV, so treat a suggestion as a starting point and check it against a reference sample or a database.

Last updated: October 14, 2026

## Related tools & guides

Keep going with the [IR spectrum viewer](https://www.moldraw.com/tools/ir-viewer/index.html), [Raman spectrum viewer](https://www.moldraw.com/tools/raman-viewer/index.html) and [UV-Vis spectrum viewer](https://www.moldraw.com/tools/uv-vis-viewer/index.html). They are free and run in your browser.

[**IR spectrum viewer**Find peaks and functional groups](https://www.moldraw.com/tools/ir-viewer/index.html)[**Raman spectrum viewer**Baseline, spikes and bands](https://www.moldraw.com/tools/raman-viewer/index.html)[**UV-Vis spectrum viewer**Lambda max, Beer-Lambert, band gap](https://www.moldraw.com/tools/uv-vis-viewer/index.html)[**Cyclic voltammetry viewer**E1/2, peak split, HOMO/LUMO](https://www.moldraw.com/tools/cv-viewer/index.html)[**TGA and DSC viewer**Mass loss, Tg, melting, ΔH](https://www.moldraw.com/tools/tga-dsc-viewer/index.html)[**Periodic table**Interactive element data](https://www.moldraw.com/tools/free-chem-tools/interactive-periodic-table.html)[**Spectroscopy guides**All reading guides](https://www.moldraw.com/guides/)[**Guide to all MolDraw tools**Every free tool in one place](https://www.moldraw.com/blog/moldraw-all-free-chemistry-tools-guide.html)
