133

How can I increase the font size in the Chrome console?

It seems Paul Irish did it:

enter image description here

Source

Update:

Here are some tips on how to customize Chrome developer tools.

1
  • Unfortunately, <kbd>Cmd/Ctrl</kbd> + <kbd>+</kbd>/<kbd>-</kbd> to zoom is not the same as changing browser font-size. You're actually zooming in the entire page. It would be nice to have an easy way to test users with different appearance settings, for say if you are using REMs everywhere and need to test breakpoints.
    – Phil Tune
    Commented Dec 26, 2023 at 16:08

17 Answers 17

263

If you just need a quick, temporary size bump you can press Ctrl + / - to zoom and Ctrl 0 to reset.

11
  • 3
    I had no idea this would work in the console independent of the web page. Nice one...
    – jcalfee314
    Commented Nov 26, 2014 at 14:44
  • 11
    For mac users: ⌘+ and ⌘-
    – jherax
    Commented Apr 16, 2015 at 15:13
  • How to set custom zoom? Not predefined + | -
    – Green
    Commented Jan 28, 2016 at 5:12
  • 3
    Thank the lord someone posted this. I did an accidental keystroke and increased this size, and then found no way to get it back until I stumbled across this post.
    – Volomike
    Commented Dec 11, 2016 at 4:37
  • 1
    Thanks a lot. it works for Microsoft Edge console as well. Commented Jan 13, 2019 at 18:06
24

Here's a pretty recent blog post on the subject.

Basically, override Default/User StyleSheets/Custom.css in your user directory with something like:

/* Keep .platform-mac to make the rule more specific than the general one above. */
body.platform-mac.platform-mac-snowleopard .monospace,
body.platform-mac.platform-mac-snowleopard .source-code {
    font-size: 11px !important;
    font-family: Menlo, monospace;
}

body.platform-windows .monospace, body.platform-windows .source-code {
    font-size: 12px !important;
    font-family: Consolas, Lucida Console, monospace;
}

body.platform-linux .monospace, body.platform-linux .source-code {
    font-size: 11px !important;
    font-family: dejavu sans mono, monospace;
}
4
  • 4
    FYI, this doesn't do anything about the font size in the console, as far as I can tell. It's great for things like the source code pane, but the console itself seems to have very specific settings for many things that override the font-size settings here. Commented Jan 10, 2013 at 19:43
  • 2
    @Boris Smus There is no User StyleSheets/Custom.css folder/file in my C:\Users\c22\AppData\Local\Google\Chrome\User Data\Default directory on my Windows 8 laptop. And I've checked all the folders and files in the Default directory. This question is over a year ago, has anyone found where the custom.css file is located in Chrome 37.0.x? Thanks
    – Chris22
    Commented Sep 24, 2014 at 1:23
  • 1
    Custom Stylesheet is removed from Chromium : codereview.chromium.org/66383005 . If you want to custom your theme, try using a Chrome devtools extension: github.com/mauricecruz/zero-base-themes
    – Dio Phung
    Commented Jun 21, 2015 at 21:53
  • downvote simply because this may have been a great tip once, but it is no longer valid.
    – toraritte
    Commented Oct 31, 2022 at 15:20
22
  1. Open Browser
  2. Open Console.
  3. Press Ctrl+.

I hope it will help you

4
  • Could you elaborate on this? As it stands, it's not really a clear answer. Commented Dec 11, 2013 at 12:35
  • It is really more easy way than chosen as answer for this question.
    – Selvatico
    Commented Apr 24, 2014 at 23:51
  • 1
    For mac users: ⌘- and ⌘+
    – jherax
    Commented Apr 16, 2015 at 15:15
  • 1
    This has the undesirable side-effect of zooming all the other UI elements as well and effectively decreasing total available reading space.
    – Aditya M P
    Commented Jan 27, 2019 at 7:57
14

If you are on a Mac, are using a japanese keyboard, and want to zoom the console temporarily, the short-cuts are:

Zoom In: ^

Zoom Out: -

Reset Zoom: 0

Other Applications are using + for zooming in, but because on japanese keyboards the plus-sign is on the second level, it is only accessible with shift. So: +

That where it gets weird, because to Chrome + apparently means "Zoom Content". If you are in the Javascript console, and do +, the window's content area in zoomed in. But doing a Zoom-out - moves the focus back to the console and zooms it out. Result: The content is getting larger, the console smaller. Aaarggghhh.

1
  • saved my day! gosh how i hate japanese keyboards
    – TanC
    Commented Jun 1, 2015 at 6:00
9

Windows 7, Google Chrome 19.0.1084.46 m

Method with modifying "User StyleSheets/Custom.css" not worked on me, but Ctrl+"+" worked :-)

1
  • I dont know why i didnt try this.... der... thanks... Would like to change the font though... Commented Jun 5, 2012 at 21:54
8

THIS IS OBSOLETE - See @TinyJaguar's answer. You can now just use Command-+ if you've selected something in the developer console.

If you want to increase the font size in the Javascript console, you need some specific font sizes. It's a bit trickier than just setting the font size for source:

.source-code {
    font-size: 16px !important;
    font-family: monospace;
}

.console-prompt {
    font-size: 16px !important;
    font-family: monospace;
}

.console-message-text {
    font-size: 16px !important;
    font-family: monospace;
}

.monospace {
    font-size: 16px !important;
    font-family: monospace;
}

#elements-content {
  font-size: 16px !important;
}
6
  • 2
    This works. The CSS in the OP-selected answer does not (anymore, at least). Commented Apr 3, 2013 at 21:55
  • where would you put this css?
    – gerl
    Commented Apr 3, 2014 at 14:11
  • @ChrisRedford yes, where does this code go? I don't have the C:\Users\c22\AppData\Local\Google\Chrome\User Data\Default\User Stylesheet\Custom.css file in windows 8.
    – Chris22
    Commented Sep 24, 2014 at 1:26
  • @Chris22 Sorry, this is a problem I had almost a year ago. I don't remember what files were involved and I'm not developing closely with web browsers anymore. Commented Sep 24, 2014 at 3:22
  • @ChrisRedford ok, thanks for replying. I'll use the quick fix of ctrl +/-. Chrome has made it very difficult to find the CSS file to edit on purpose, I suppose.
    – Chris22
    Commented Sep 24, 2014 at 3:31
7

On MacOs, if your key 0 or + or - are on the second level, typing + won't work. In such a case, you need to use capslock , and then you can type + and 0

0
7

Of Note: From within DevTools, you must have the Elements Tab open in order to adjust font size by using "Ctrl +/-." For some reason it cannot be done in other tabs.

In the newer version of Chrome, you can easily change the font size of font in Developer Tools.

  1. Open Developer Tools
  2. Click on any line in source code Clicking random line on source code
  3. Press Ctrl + + to increase font size or Ctrl + - to decrease font size Pressing required key combinations to increase or decrease font size
1
  • It's predefined zoom. How about to set custom zoom?
    – Green
    Commented Jan 28, 2016 at 5:14
6

I've created a small plugin which provides a collection editor settings for Chrome Developer Tools, including the ability to incrementally control font size.

  1. Install DevTools Author Chrome extension from Chrome Web Store
  2. Enable Developer Tools experiments in chrome://flags/#enable-devtools-experiments. Restart Chrome for flags to take effect.
  3. Open DevTools (cmd + opt + I); Settings > Experiments > check Allow custom UI themes.

This will add an 'Author Settings' panel to Chrome Developer Tools, where you can incrementally control font size, from 10px - 22px

0
6

If you're like me, CMD++ is not working for you because it switches you to the first tab instead (even though you have Enable ⌘ + 1-9 shortcut to switch panels turned off).

Well, in that case, open Dev Tools, Undock into separate window and then go for View --> Zoom in in Chrome Menu Bar. Voilà!

Once you dock Dev Tools back into the browser window, View --> Zoom in will actually increase font size in a browser window, but as long as Dev Tools are undocked, it targets the undocked Dev Tools.

2
  • 1
    You saved my eyes. Commented Jan 5, 2018 at 14:52
  • Glad I could help!
    – Bugs Bunny
    Commented Jan 5, 2018 at 14:53
6

Press

  • CTRL++ to zoom in
  • CTRL+- to zoom out
  • CTRL+0 to reset to default

For Mac, replace CTRL with CMD key (a.k.a., ).

3

I know this is way old, but the simple solution I found is to increase the min. font size in the settings and that will take care of the font size in chrome debugger.

3

Another quick way to change the font size in Chrome Dev tools permanently: Settings--> Show Advanced Settings --> Web Content : change the Page Zoom percentage.

Change font size

Here is the result: https://i.sstatic.net/EHM0P.png Size by size comparison

2
  • Does it affect Chrome system-wide or only for DevTools?
    – Green
    Commented Jan 28, 2016 at 5:13
  • It changed Chrome system-wide font size.
    – Dio Phung
    Commented Jan 28, 2016 at 17:46
1

If you're using a newer MacBook pro 2017, you can simply use command => shift => + or - all pressed at once.

1

If you are using a laptop, you can do that with only your laptop trackpad.

Tap on your trackpad with one finger(don't release yet) then scroll up or down with another finger to increase or decrease font size.

Just make sure the dev tools panel is on focus. Tested and working on my HP Pavilion, Windows 8.

1

press ctrl and hover your mouse wheel

0

You can press Ctrl + Shift + + / - to zoom and Ctrl + 0 to reset Console font size.

You can see all available shortcuts Chrome's Console in the settings.

F12 (open dev tools) -> F1 -> Shortcuts

** Chrome shortcuts **

Not the answer you're looking for? Browse other questions tagged or ask your own question.