blob: 29f3cfa94a4f545286c34b11539e025c2cac937b [file] [log] [blame] [view]
Steve Kobes22fb19c2017-07-05 21:49:081# User Data Directory
2
3[TOC]
4
5## Introduction
6
7The user data directory contains profile data such as history, bookmarks, and
8cookies, as well as other per-installation local state.
9
10Each [profile](https://support.google.com/chrome/answer/2364824) is a
11subdirectory (often `Default`) within the user data directory.
12
13## Current Location
14
15To determine the user data directory for a running Chrome instance:
16
171. Navigate to `chrome://version`
182. Look for the `Profile Path` field. This gives the path to the profile
19 directory.
203. The user data directory is the parent of the profile directory.
21
22Example (Windows):
23
24* [Profile Path] `C:\Users\Alice\AppData\Local\Google\Chrome\User Data\Default`
25* [User Data Dir] `C:\Users\Alice\AppData\Local\Google\Chrome\User Data`
26
27## Default Location
28
29The default location of the user data directory is computed by
30[`chrome::GetDefaultUserDataDirectory`](https://cs.chromium.org/chromium/src/chrome/common/chrome_paths_internal.h?q=GetDefaultUserDataDirectory).
31
32Generally it varies by
33
34* OS platform,
35* branding ([Chrome vs. Chromium](chromium_browser_vs_google_chrome.md), based
36 on `is_chrome_branded` in [GN
37 args](https://www.chromium.org/developers/gn-build-configuration)), and
38* [release channel](https://www.chromium.org/getting-involved/dev-channel)
39 (stable / beta / dev / canary).
40
41### Windows
42
43The default location is in the local app data folder:
44
45* [Chrome] `%LOCALAPPDATA%\Google\Chrome\User Data`
Raymond Toy4e6608072021-04-15 21:38:2646* [Chrome Beta] `%LOCALAPPDATA%\Google\Chrome Beta\User Data`
Steve Kobes22fb19c2017-07-05 21:49:0847* [Chrome Canary] `%LOCALAPPDATA%\Google\Chrome SxS\User Data`
48* [Chromium] `%LOCALAPPDATA%\Chromium\User Data`
49
50(The canary channel suffix is determined using
51[`InstallConstants::install_suffix`](https://cs.chromium.org/chromium/src/chrome/install_static/install_constants.h?q=install_suffix).)
52
53### Mac OS X
54
55The default location is in the `Application Support` folder:
56
57* [Chrome] `~/Library/Application Support/Google/Chrome`
Raymond Toy4e6608072021-04-15 21:38:2658* [Chrome Beta] `~/Library/Application Support/Google/Chrome Beta`
Steve Kobes22fb19c2017-07-05 21:49:0859* [Chrome Canary] `~/Library/Application Support/Google/Chrome Canary`
60* [Chromium] `~/Library/Application Support/Chromium`
61