codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



Home » HTML » Article

Complete list of all the ASCII characters and their codes

Article by:  Jeff Anderson  ( 1362 ) (3/28/2002)
Bookmark us now! Add to Favourites
Email a friend!Tell a friend
Sponsored by: FindMyHosting - Web Hosting Search
Summary: A full list of all the ASCII characters.
Viewed: 57141 times Rating (775 votes): 
 4.8 out of 5
 Rate this Article  Read Comments  Post Comments



Complete list of all the ASCII characters and their codes



In HTML you can print to screen ASCII characters by using their ASCII code. This is particularly useful when writing characters that might be treated as part of HTML, such as < and > as well as to produce some special codes and accents.

The format is &# followed by the number, followed by semi-colon, as in :

&#149;


produces a bullet point : •

The full list of ASCII codes is shown below.

&#1; =  &#52; = 4 &#103; = g &#157; = &#208; =
&#2; =  &#53; = 5 &#104; = h &#158; = &#209; =
&#3; =  &#54; = 6 &#105; = i &#159; = &#210; =
&#4; =  &#55; = 7 &#106; = j &#160; = &#211; =
&#5; =  &#56; = 8 &#107; = k &#161; = &#212; =
&#6; =  &#57; = 9 &#108; = l &#162; = &#213; =
&#7; =  &#58; = : &#109; = m &#163; = &#214; =
&#8; =  &#59; = ; &#110; = n &#164; = &#215; =
&#9; = &#60; = < &#111; = o &#165; = &#216; =
&#10; = &#61; = = &#112; = p &#166; = &#217; =
&#11; = &#62; = > &#113; = q &#167; = &#218; =
&#12; = &#63; = ? &#114; = r &#168; = &#219; =
&#13; = &#64; = @ &#115; = s &#169; = &#220; =
&#14; =  &#65; = A &#116; = t &#170; = &#221; =
&#15; =  &#66; = B &#117; = u &#171; = &#222; =
&#16; =  &#67; = C &#118; = v &#172; = &#223; =
&#17; =  &#68; = D &#119; = w &#173; = &#224; =
&#18; =  &#69; = E &#120; = x &#174; = &#225; =
&#19; =  &#70; = F &#121; = y &#175; = &#226; =
&#20; =  &#71; = G &#122; = z &#176; = &#227; =
&#21; =  &#72; = H &#123; = { &#177; = &#228; =
&#22; =  &#73; = I &#124; = | &#178; = &#229; =
&#23; =  &#74; = J &#125; = } &#179; = &#230; =
&#24; =  &#75; = K &#126; = ~ &#180; = &#231; =
&#25; =  &#76; = L &#127; =  &#181; = &#232; =
&#26; =  &#77; = M &#128; = &#182; = &#233; =
&#27; =  &#78; = N &#129; = &#183; = &#234; =
&#28; =  &#79; = O &#130; = &#184; = &#235; =
&#29; =  &#80; = P &#131; = &#185; = &#236; =
&#30; =  &#81; = Q &#132; = &#186; = &#237; =
&#31; =  &#82; = R &#133; = &#187; = &#238; =
&#32; = &#83; = S &#134; = &#188; = &#239; =
&#33; = ! &#84; = T &#135; = &#189; = &#240; =
&#34; = " &#85; = U &#136; = &#190; = &#241; =
&#35; = # &#86; = V &#137; = &#191; = &#242; =
&#36; = $ &#87; = W &#138; = &#192; = &#243; =
&#37; = % &#88; = X &#139; = &#193; = &#244; =
&#38; = & &#89; = Y &#140; = &#194; = &#245; =
&#39; = ' &#90; = Z &#141; = &#195; = &#246; =
&#40; = ( &#91; = [ &#142; = &#196; = &#247; =
&#41; = ; &#92; = \ &#143; = &#197; = &#248; =
&#42; = * &#93; = ] &#144; = &#198; = &#249; =
&#43; = + &#94; = ^ &#145; = &#199; = &#250; =
&#44; = , &#95; = _ &#146; = &#200; = &#251; =
&#45; = - &#96; = ` &#147; = &#201; = &#252; =
&#46; = . &#97; = a &#148; = &#202; = &#253; =
&#47; = / &#98; = b &#149; = &#203; = &#254; =
&#48; = 0 &#99; = c &#150; = &#204; = &#255; =
&#49; = 1 &#100; = d &#151; = &#205; =
&#50; = 2 &#101; = e &#152; = &#206; =
&#51; = 3 &#102; = f &#153; = &#207; =






CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'Complete list of all the ASCII characters and their codes'
Posted by :  Archive Import (Thad Bryson) at 13:01 on Saturday, April 26, 2003
I'm afraid I don't have the time, but could someone post the corresponding hex values?
Posted by :  Archive Import (Andreas Krokene) at 12:06 on Tuesday, July 08, 2003
Greetings,
Looking for ASCII codes for my proofreading of Public Domain texts with Project Gutenberg ( www.pgdp.net ).
This list looks like it will supplement what I have already.
Thankyou and kindest regards,

Andreas Krokene
Posted by :  Archive Import (Michael) at 18:00 on Tuesday, July 22, 2003
A "Complete" list would indeed show all codes and ALL characters, including "non-printable" characters. The control codes and other "non-printables" would be very helpful, even though they may not be used specifically in HTML documents. This includes carriage returns(*#10), line feeds (*#12), space ( ) etc. Otherwise, please list it as "ASCII for HTML" or something, but it is NOT "Complete"
Posted by :  Archive Import (blueStatic) at 15:51 on Saturday, July 26, 2003
I don't know, maybe it's just the way I search the web, but would someone please be kind enough to list all the ASCII characters (from 1 to 255)?? I'm making a program in VB .NET that needs this line and I find copying all 255 characters to not only be tedious, but erronous when it comes to using If statements for each individual character. Please email me the complete list (with no extra information added to it). All I need is a list on ONE line as shown below (characters 32 to 76):

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz

Thanks for your help.
Posted by :  Archive Import (blueStatic) at 15:53 on Saturday, July 26, 2003
By the way, it might sound a little bit unclear the way I put it, but I'll need 'the complete list (1 to 255) of ASCII characters on ONE single line.'

Thanks!
Posted by :  Archive Import (Michael Graves) at 14:28 on Tuesday, August 12, 2003
I'm really glad somebody has thought to post this on the net, but the addition of all the hexidecimal and extended ASCII codes would be really helpful.
Posted by :  !aborabi at 09:12 on Monday, July 24, 2006
This is very helpfull! Thank you very much!

http://www.visionwebhosting.net
http://www.astrawebhosting.net


To post comments you need to become a member. If you are already a member, please log in .

 



RELATED ARTICLES
Image Submit Button
by Jeff Anderson
You can keep your forms from slipping into mundanity by substituting the default gray submit button to a colourful graphic of your choosing.
Parent _self _blank and _top Frame Target Specifications
by Jeff Anderson
How to specify frames and how to break out of them using standard link tags.
Image Rollovers
by Jeff Anderson
A bit of code to swap to different images on the page. You often see this on sites to display a rollover on the navigation buttons.
Pre Tag
by Jeff Anderson
No need to reformat text files with line breaks and tabs if you use the pre tag
ASCII characters and their codes
by Jeff Anderson
A full list of all the ASCII characters.
In-Line Frames (IFrames)
by Jeff Anderson
Inline frames or IFrames are the ones which appear in the midst of a standard page, but actually reference a totally separate url.
Validate Date
by Kannadasan Ramiah
Validating Date entered in a text box, pure HTML page
HTML Hspace and Vspace Image Borders
by Jeff Anderson
A lesser known feature in HTML is the ability to add a blank border around images both horizontally and vertically.
Creating Navigation with Frames
by Jeff Anderson
The most popular use of frames is to allow a static navigation to stay on one part of the screen (in one frame) while the content changes in another.
The OSI Reference Model - A Clear and Concise Illustration !
by James Opiko
The OSI Reference Model - A Resource For IT Certification Candidates & Networking Professionals








Recent Forum Threads
• Losing background/text color when converting HTML to PDF
• hidden div block when displayed, displays at an offset of 200px only in IE 6..
• help - sketch
• Re: Perl Script - File Handling.
• Open a file from website
• Re: to open 5 terminals from one and also execute different commands on each terminal
• read a selected multiple line, those should match some of the values read in the files..
• Help me please
• Empty the contents of a file.


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008