<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="rhi-20230511.xsd" xlink:type="simple"/>
    <context id="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000315213</identifier>
        </entity>
        <period>
            <startDate>2023-05-11</startDate>
            <endDate>2023-05-11</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF80L2ZyYWc6YzFmNmE5OTliNjlkNGQ5ZWEzOWQwYTgyZTQ2YjM3ZDkvdGFibGU6ZDYwYjRmZDdlY2E1NDc0NjllMGE2ODYwMzJjMmNhMWQvdGFibGVyYW5nZTpkNjBiNGZkN2VjYTU0NzQ2OWUwYTY4NjAzMmMyY2ExZF8xLTEtMS0xLTc5NTI1_25e22cbd-bad5-4cdf-a3f8-0f00d9f0a65e">0000315213</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF80L2ZyYWc6YzFmNmE5OTliNjlkNGQ5ZWEzOWQwYTgyZTQ2YjM3ZDkvdGFibGU6ZDYwYjRmZDdlY2E1NDc0NjllMGE2ODYwMzJjMmNhMWQvdGFibGVyYW5nZTpkNjBiNGZkN2VjYTU0NzQ2OWUwYTY4NjAzMmMyY2ExZF8yLTEtMS0xLTc5NTI1_e4483263-fb17-4e11-b7d2-33ecbeeee1f2">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGV4dHJlZ2lvbjpjYWRhYzdmMjE1OTY0NmY3ODRjNWU4MzU5ZjE4YzdhM18xMDU_074a51c7-72f3-4195-b5c5-9a5e2a13adc9">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGV4dHJlZ2lvbjpjYWRhYzdmMjE1OTY0NmY3ODRjNWU4MzU5ZjE4YzdhM18yNjg_52976fb7-b35f-49f6-b3df-e49d38ef203a">2023-05-11</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGV4dHJlZ2lvbjpjYWRhYzdmMjE1OTY0NmY3ODRjNWU4MzU5ZjE4YzdhM18yOTQ_f6215925-fff1-4fa7-9a44-6ba0747b6d4a">Robert Half International Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6ZmI3MGY3MWFjMDYyNDA4YWE0MzFkNmM2YmYzNGMxM2YvdGFibGVyYW5nZTpmYjcwZjcxYWMwNjI0MDhhYTQzMWQ2YzZiZjM0YzEzZl8wLTAtMS0xLTc5NTI1_94b3323e-8fbe-4856-ac26-94595bb894a4">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6ZmI3MGY3MWFjMDYyNDA4YWE0MzFkNmM2YmYzNGMxM2YvdGFibGVyYW5nZTpmYjcwZjcxYWMwNjI0MDhhYTQzMWQ2YzZiZjM0YzEzZl8wLTItMS0xLTc5NTI1_8b268e50-e563-407f-82ad-d68b9b703e47">01-10427</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6ZmI3MGY3MWFjMDYyNDA4YWE0MzFkNmM2YmYzNGMxM2YvdGFibGVyYW5nZTpmYjcwZjcxYWMwNjI0MDhhYTQzMWQ2YzZiZjM0YzEzZl8wLTQtMS0xLTc5NTI1_46c563a6-859f-4d9f-9c12-8c36e2e265b6">94-1648752</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MDJmOWQ0MDNhNGM3NGQ0Mjk4MzQ3ZGUzM2E0MGY4NTUvdGFibGVyYW5nZTowMmY5ZDQwM2E0Yzc0ZDQyOTgzNDdkZTMzYTQwZjg1NV8wLTAtMS0xLTc5NTI1_a2fcd2c9-44dc-4dfd-beca-5b439cee7ea4">2884 Sand Hill Road, Suite 200,</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MDJmOWQ0MDNhNGM3NGQ0Mjk4MzQ3ZGUzM2E0MGY4NTUvdGFibGVyYW5nZTowMmY5ZDQwM2E0Yzc0ZDQyOTgzNDdkZTMzYTQwZjg1NV8wLTEtMS0xLTc5NTI1_880818de-e371-43b3-a499-d55c60ae9f93">Menlo Park,</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MDJmOWQ0MDNhNGM3NGQ0Mjk4MzQ3ZGUzM2E0MGY4NTUvdGFibGVyYW5nZTowMmY5ZDQwM2E0Yzc0ZDQyOTgzNDdkZTMzYTQwZjg1NV8wLTItMS0xLTc5NTI1_2a614a5f-d182-482f-9918-85f0b465ca96">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MDJmOWQ0MDNhNGM3NGQ0Mjk4MzQ3ZGUzM2E0MGY4NTUvdGFibGVyYW5nZTowMmY5ZDQwM2E0Yzc0ZDQyOTgzNDdkZTMzYTQwZjg1NV8wLTQtMS0xLTc5NTI1_e15e9502-ce99-4ffb-a1f5-50f8b9f3dba4">94025</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGV4dHJlZ2lvbjpjYWRhYzdmMjE1OTY0NmY3ODRjNWU4MzU5ZjE4YzdhM180MzM_cabbdcb7-1050-4b39-95f6-4e6c5162fff4">650</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGV4dHJlZ2lvbjpjYWRhYzdmMjE1OTY0NmY3ODRjNWU4MzU5ZjE4YzdhM180Mzc_40ec056c-a5c6-493e-b4a3-633b956b75ab">234-6000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6NTNmNjI0YWZkMTNiNDViMmFlZGFlYzI3MmQxYTY5ZDIvdGFibGVyYW5nZTo1M2Y2MjRhZmQxM2I0NWIyYWVkYWVjMjcyZDFhNjlkMl8wLTAtMS0xLTc5NTI1_4f13ed77-f800-4134-9ddb-7649acef56cd">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MGFhZjFiYTZlOTc2NDQ0MGE4MWYxNGYzMmRhOTZlN2EvdGFibGVyYW5nZTowYWFmMWJhNmU5NzY0NDQwYTgxZjE0ZjMyZGE5NmU3YV8wLTAtMS0xLTc5NTI1_394991db-176f-4c3e-87e8-fbf2c99aea3d">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MDdjMDY0YTI2ODMzNDU0ZjllYzA4NTcwNTU4MTRlYWIvdGFibGVyYW5nZTowN2MwNjRhMjY4MzM0NTRmOWVjMDg1NzA1NTgxNGVhYl8wLTAtMS0xLTc5NTI1_f7bef93e-34e9-4e96-a90d-b93f2f187ede">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6YWY2MmMxOGY3Njk0NGYzN2IwNmVlMjAzMDQxMGVjMDIvdGFibGVyYW5nZTphZjYyYzE4Zjc2OTQ0ZjM3YjA2ZWUyMDMwNDEwZWMwMl8wLTAtMS0xLTc5NTI1_74c487e4-7a16-4c14-ba71-ace500a48475">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MTgxNzBlMjUwZTM4NDlmM2E2ZGJmOTEyMDRlYzBkZjkvdGFibGVyYW5nZToxODE3MGUyNTBlMzg0OWYzYTZkYmY5MTIwNGVjMGRmOV8xLTAtMS0xLTc5NTI1_b59599bc-c0cc-4934-896b-eb96d955805d">Common Stock, Par Value $.001 per Share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MTgxNzBlMjUwZTM4NDlmM2E2ZGJmOTEyMDRlYzBkZjkvdGFibGVyYW5nZToxODE3MGUyNTBlMzg0OWYzYTZkYmY5MTIwNGVjMGRmOV8xLTEtMS0xLTc5NTI1_b184f60d-957f-4e18-915f-1a043a3f04a4">RHI</dei:TradingSymbol>
    <dei:TradingSymbol
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MTgxNzBlMjUwZTM4NDlmM2E2ZGJmOTEyMDRlYzBkZjkvdGFibGVyYW5nZToxODE3MGUyNTBlMzg0OWYzYTZkYmY5MTIwNGVjMGRmOV8xLTEtMS0xLTc5NTI1_fe875a4e-b4ec-4e48-a8d8-fb5eaa44ed85">RHI</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGFibGU6MTgxNzBlMjUwZTM4NDlmM2E2ZGJmOTEyMDRlYzBkZjkvdGFibGVyYW5nZToxODE3MGUyNTBlMzg0OWYzYTZkYmY5MTIwNGVjMGRmOV8xLTItMS0xLTc5NTI1_6be22f30-e02e-41ec-a8bc-ce0307a4ab95">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="i1d8ebc45fa4f4cf5b90579a9208e3483_D20230511-20230511"
      id="id3VybDovL2RvY3MudjEvZG9jOjhjZGRjMzRmNjAzMjQ1YzViZTA0NDRjNTcyOWE0YWNkL3NlYzo4Y2RkYzM0ZjYwMzI0NWM1YmUwNDQ0YzU3MjlhNGFjZF8xL2ZyYWc6Y2FkYWM3ZjIxNTk2NDZmNzg0YzVlODM1OWYxOGM3YTMvdGV4dHJlZ2lvbjpjYWRhYzdmMjE1OTY0NmY3ODRjNWU4MzU5ZjE4YzdhM18xMDk5_e98c965d-f693-4de3-aebd-5901f7303ab3">false</dei:EntityEmergingGrowthCompany>
</xbrl>
