<p>Note that for Windows the location of the configuration folder where bitcoin.conf is located is saved in the registry. </p>

<p>Its default path is indeed <code>C:\Users\&lt;username&gt;\AppData\Roaming\Bitcoin</code> but if that location was changed then in order to find the current folder you will have to look in <code>HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt</code> at the REG_SZ <code>strDataDir</code>.</p>

CC BY-SA 4.0
2020-02-02T15:03:32.460Z
2020-02-02T15:03:32.460Z
Sampeet
<p>I would guess that that refers to your bitcoin.conf.  There's platform-specific information on where to find it at: <a href="https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File" rel="nofollow">https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File</a></p>

CC BY-SA 3.0
2013-05-24T22:15:23.647Z
2013-05-24T22:15:23.647Z
Julian Goldsmith
<p>In bitcoin-core version 0.14.2, it looks for it in the data-dir folder
<a href="https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File</a></p>

<p>The bitcoin.conf file is not created by default, you will need to create it yourself.
And also, I never had a <code>c:\users\[username]\appdata\roaming\bitcoin</code> folder as many online answers will suggest, this is because when I installed the bitcoin core program, I chose to put my data directory in a different place than default.</p>

CC BY-SA 3.0
2017-09-09T10:17:06.650Z
2017-09-09T10:17:06.650Z
Sean Bradley
<p>The default location of bitcoin.conf depends on your operating system:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>OS</th>
<th>Path</th>
</tr>
</thead>
<tbody>
<tr>
<td>Windows XP</td>
<td>C:\Documents and Settings\&lt;username&gt;\Application Data\Bitcoin\bitcoin.conf</td>
</tr>
<tr>
<td>Windows Vista, 7, 10</td>
<td>C:\Users\&lt;username&gt;\AppData\Roaming\Bitcoin</td>
</tr>
<tr>
<td>Linux</td>
<td>/home/&lt;username&gt;/.bitcoin/bitcoin.conf</td>
</tr>
<tr>
<td>Mac OSX</td>
<td>/Users/&lt;username&gt;/Library/Application Support/Bitcoin/bitcoin.conf</td>
</tr>
</tbody>
</table>
</div>
<p><sub><a href="https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File" rel="nofollow noreferrer">Source</a></sub></p>
<p>Not directly related to this question, but if you cannot find the configuration file at the above path: note that the configuration file is not necessary to run Bitcoin-Qt. <em>If it is not yet present, you can simply create it with any text editor</em>.</p>

CC BY-SA 3.0
2014-03-31T18:05:16.023Z
OSX -> OS X (e.g. ref. https://en.wikipedia.org/wiki/Mac_OS_X)
Peter Mortensen
CC BY-SA 3.0
2015-03-06T01:46:01.740Z
On my mac the bitcoin.conf file doesn't exist.  I'm not sure if simply creating it will cause it to be used by bitcoin-qt
benathon
CC BY-SA 3.0
2016-11-01T21:05:31.860Z
@portforwardpodcast: Bitcoin Core will check for the existence of the file on startup, so yes, simply creating it is sufficient.
Murch
CC BY-SA 3.0
2017-04-10T11:31:45.017Z
I use Linux Ubuntu(16.04 LTS) and i've found file /root/.config/Bitcoin/bitcoin.conf but it's content was not like a normal bitcoin.conf
Андрей Аршинов
CC BY-SA 3.0
2017-04-28T12:33:37.477Z
@PeterMortensen macOS, not OS X.
MCCCS
CC BY-SA 3.0
2017-06-09T20:23:37.503Z
I have windows 8.1 and I can't find any bitcoin.conf file in my user folder...
B T
CC BY-SA 4.0
2018-07-31T11:25:00.433Z
For Bitcoin Core, if the file doesn't exist go to Settings (or Preferences in the top menu on macOS) and click the button labeled "Open Configuration File". This will create a bitcoin.conf file and open it in a text editor. Make your changes and save, then restart Bitcoin Core.
Nate Cook
CC BY-SA 4.0
2013-05-25T05:22:21.150Z
2023-08-21T14:50:50.900Z
2023-08-21T14:50:50.900Z
Nick ODell
<p>I keep getting this error:</p>

<pre><code>EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15
program_options26invalid_config_file_syntaxEEEEE
the options configuration file contains an invalid line 'XXXXXXXXXXX'
</code></pre>

<p>Where can I find the <code>bitcoin.conf</code> file?</p>

<bitcoin.conf>
Where is the configuration file of Bitcoin-Qt kept?
Haddar Macdasi
# Where is the configuration file of Bitcoin-Qt kept?

(Asked by: username_0 on 2013-05-24)

I keep getting this error:
EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15
program_options26invalid_config_file_syntaxEEEEE
the options configuration file contains an invalid line 'XXXXXXXXXXX'

Where can I find the bitcoin.conf file?

**Tags:** bitcoin.conf


---

## 4 answers

### Answer by username_4 on 2013-05-25. Score: 20 | Accepted answer

The default location of bitcoin.conf depends on your operating system:

| OS | Path |
| --- | --- |
| Windows XP | C:\Documents and Settings\\Application Data\Bitcoin\bitcoin.conf |
| Windows Vista, 7, 10 | C:\Users\\AppData\Roaming\Bitcoin |
| Linux | /home//.bitcoin/bitcoin.conf |
| Mac OSX | /Users//Library/Application Support/Bitcoin/bitcoin.conf |

[Source](https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File)

Not directly related to this question, but if you cannot find the configuration file at the above path: note that the configuration file is not necessary to run Bitcoin-Qt. *If it is not yet present, you can simply create it with any text editor*.

> **Comments:**
> **username_5**: OSX -> OS X (e.g. ref. https://en.wikipedia.org/wiki/Mac_OS_X)  
> **username_6**: On my mac the bitcoin.conf file doesn't exist.  I'm not sure if simply creating it will cause it to be used by bitcoin-qt  
> **username_7**: @portforwardpodcast: Bitcoin Core will check for the existence of the file on startup, so yes, simply creating it is sufficient.  
> **username_8**: I use Linux Ubuntu(16.04 LTS) and i've found file /root/.config/Bitcoin/bitcoin.conf but it's content was not like a normal bitcoin.conf  
> **username_9**: @PeterMortensen macOS, not OS X.  
> **username_10**: I have windows 8.1 and I can't find any bitcoin.conf file in my user folder...  
> **username_11**: For Bitcoin Core, if the file doesn't exist go to Settings (or Preferences in the top menu on macOS) and click the button labeled "Open Configuration File". This will create a bitcoin.conf file and open it in a text editor. Make your changes and save, then restart Bitcoin Core.  

---

### Answer by username_1 on 2020-02-02. Score: 5

Note that for Windows the location of the configuration folder where bitcoin.conf is located is saved in the registry.

Its default path is indeed `C:\Users\\AppData\Roaming\Bitcoin` but if that location was changed then in order to find the current folder you will have to look in `HKEY_CURRENT_USER\Software\Bitcoin\Bitcoin-Qt` at the REG\_SZ `strDataDir`.


---

### Answer by username_2 on 2013-05-24. Score: 3

I would guess that that refers to your bitcoin.conf. There's platform-specific information on where to find it at: <https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File>


---

### Answer by username_3 on 2017-09-09. Score: 1

In bitcoin-core version 0.14.2, it looks for it in the data-dir folder
<https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File>

The bitcoin.conf file is not created by default, you will need to create it yourself.
And also, I never had a `c:\users\[username]\appdata\roaming\bitcoin` folder as many online answers will suggest, this is because when I installed the bitcoin core program, I chose to put my data directory in a different place than default.


---

